Hi,
sorry if the question has already been asked but I did not find any hint on google, this forum or the doc on the wiki.
I use FCKeditor 2.1
It seems that GetHTML method has a strange behavior:
when using
var c = FCKeditorAPI.GetInstance('editor').GetHTML(true);
alert('|'+c+'|');
if I type "test" (wihtout any br nor newline) in the editor, I sometimes get in the alert:
- |test| which is ok
- |test<br>| which is wrong
- |test<br>
| which is wrong
- |test
<br>| which is wrong
does a workaround exist to have the "real" content I typed in the editor (without more br or \n) ?
for example a clean function or something like that ?
regards,
chris
sorry if the question has already been asked but I did not find any hint on google, this forum or the doc on the wiki.
I use FCKeditor 2.1
It seems that GetHTML method has a strange behavior:
when using
var c = FCKeditorAPI.GetInstance('editor').GetHTML(true);
alert('|'+c+'|');
if I type "test" (wihtout any br nor newline) in the editor, I sometimes get in the alert:
- |test| which is ok
- |test<br>| which is wrong
- |test<br>
| which is wrong
- |test
<br>| which is wrong
does a workaround exist to have the "real" content I typed in the editor (without more br or \n) ?
for example a clean function or something like that ?
regards,
chris