(jquery-rich Text Editor) How Can Be Fixed Bug In Rich Text Editor - When Press Enter In Firefox Created 'br' Tag But In Ie Created 'p' Tag?
I working on website that use cleditor (Jquery-Rich Text Editor). The editor have bug - when press enter after letter in firefox created 'br' tag but in IE created 'p' tag. Bug re
Solution 1:
It is not a bug. CLEditor uses standart browser api which can produce different result in different browsers and you cannot change IE behaviour but you can disable "br" generation in Mozilla by using execCommand
$("#input").cleditor()[0].doc.execCommand("insertBrOnReturn", false, false);
But content should have at least one paragraph. Only in this case firefox will generate "p".
Post a Comment for "(jquery-rich Text Editor) How Can Be Fixed Bug In Rich Text Editor - When Press Enter In Firefox Created 'br' Tag But In Ie Created 'p' Tag?"