bergie / hallo

Simple rich text editor (contentEditable) for jQuery UI
http://hallojs.org/
MIT License
2.43k stars 316 forks source link

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

Open thasmo opened 9 years ago

thasmo commented 9 years ago

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 commented 8 years ago

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