PDA

View Full Version : [CLOSED] [2.0-m1] HtmlEditor :: new line IE/Firefox



mimikoko
23 Apr 2009, 2:47 AM
Hello everybody,

Java: 6
GWT: 1.6.4
GXT: 2.0-m1

IE : 7
Firefox: 3.0.8


The HtmlEditor behaves differently in Internet Explorer and Firefox by "new line" (Enter).

IE converted the HtmlEditor "new lines" to HTMLTag - p (see image (http://extjs.com/forum/attachment.php?attachmentid=13216&stc=1&d=1240483526)):


<P>dummy test</P>
<P>dummy test</P>
<P>dummy test</P>
Firefox converted the HtmlEditor "new lines" to HTMLTag - br (see image (http://extjs.com/forum/attachment.php?attachmentid=13215&stc=1&d=1240483526)):


dummy test<br>dummy test<br>dummy test<br>dummy test<br>

sven
23 Apr 2009, 5:33 AM
Yes and this cant be changed. It uses the default GWT implication, which is based on the browser standard.

santipineda
21 Dec 2009, 2:41 PM
Why cant be change this method?

if(b){
var c=b.parentElement();
if(!c||c.tagName.toLowerCase()!="li"){
d.stopEvent();b.pasteHTML("<br />");..... <p></p>


I need to change the new line <br> with a paragraph <p> something like the FCKeditor when the user type "ENTER".
this is possible?

jacob_dk
4 Mar 2010, 3:59 AM
is there no solution to this problem?