When the user press in the editor shift+return
it generates a <BR />,
------------------------------------
fckconfig.js:
FCKConfig.EnterMode = 'p' ;
FCKConfig.ShiftEnterMode = 'br' ;
------------------------------------
but if the user POST the data to the server
the editor collapse all breaks that haven't
a or another character.
While when the user press only the RETURN key
the editor put a nbsp by default, but when posted
to the server the breaks inserted (<p> </p>),
collapses too, even if the tags are present in source.
When the user reload the editor with its content
the breaks are not collpsed and are visible again.
How to avoid that breaks are collapsed in the editor??
Thanks..
it generates a <BR />,
------------------------------------
fckconfig.js:
FCKConfig.EnterMode = 'p' ;
FCKConfig.ShiftEnterMode = 'br' ;
------------------------------------
but if the user POST the data to the server
the editor collapse all breaks that haven't
a or another character.
While when the user press only the RETURN key
the editor put a nbsp by default, but when posted
to the server the breaks inserted (<p> </p>),
collapses too, even if the tags are present in source.
When the user reload the editor with its content
the breaks are not collpsed and are visible again.
How to avoid that breaks are collapsed in the editor??
Thanks..
RE: Why blank line break collapse?
RE: Why blank line break collapse?
str_html=str_html.replace(/é/g,"é");
that's all
In the editor I type:
-----------------------------
first
second
-----------------------------
But when I get the content in the area with these functions:
1: var oEditor = FCKeditorAPI.GetInstance('content');
2: oEditor.GetHTML();
Then posted through ajax
The editor show this content:
-----------------------------
first
second
-----------------------------
Even if in the source code is like:
<p>first</p><p> </p><p>second</p>
RE: Why blank line break collapse?
If you are calling .GetHTML() in Firefox then the problem is http://dev.fckeditor.net/ticket/325
RE: Why blank line break collapse?
my rgds
Milan