Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Empty editable element returns a br tag in the hallomodified event data #230

Open
thasmo opened this issue Feb 12, 2015 · 1 comment
Open

Comments

@thasmo
Copy link

thasmo commented Feb 12, 2015

When deleting all contents from an editable element, data.content contains a single <br> tag, when accessed from withing the hallomodified event handler.

editor.on('hallomodified', function(event, data) {
    console.log(data.content);
});
@jbgury
Copy link

jbgury commented Mar 8, 2016

I confirm the same issue from my side. Is there a workaround for that ? Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants