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

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -