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 - Unable to make sub reports with Jasper -

delphi - How to resolve undeclared identifier problems -

Alternative for object pools in cocos2d-x v3.3 -