html - How to disable <br type="_moz" in contentEditable div in firefox -
firefox automatically inserts
<br type="_moz">
in contenteditable divs on press of enter key. adds <br> automatically when insert element through document.execcommand.
this behavior not present in other browsers.
how prevent happening in firefox.
if using jquery, can try add onchange="$(this).children('br[type=\"_moz\"]').remove();"
on div. destroy childrens of div type='_moz'
@ anytime.
Comments
Post a Comment