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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -