It seems the FormatOutput option of FCKeditor doesn't quite work properly. I think it has something to do with the integration with drupal, because the plain FCKeditor itself doesn't exhibit this problem (tried with demo at http://www.fckeditor.net/).
When FormatOutput is true, FCKeditor is supposed to format its output to insert line breaks after certain types of end tags. However, it doesn't always work. For example, if I type:
123
The numbers 1, 2, and 3 are each in their own paragraph. I expect the output of FCKeditor (back to the webserver) to be:
1
2
3
But actually, I get:
1
2
3
HOWEVER, if I click on the "Source" view, I get to see the source properly formatted (FormatSource is also true), and the submitted output back to the webserver is with the appropriate line breaks as expected.
Another way to do observe the problem. When NOT in "Source" view, click on "Switch to plain text editor". The HTML is bunched up in one line. If I am in "Source" view, then click on "Switch to plain text editor", the line breaks are as expected.
Comments
Comment #1
lzs commentedI'm sorry, I mucked up the HTML tags in my initial post so they are not clearly presented.
What I expect to see is:
But what I got instead is:
<p>1</p><p>2</p><p>3</p>I hope this is clearer.
Comment #2
wwalc commentedFixed in CVS.
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/fckeditor/f...
Comment #3
lzs commentedI'm afraid not quite fixed. When I click "switch to plain text editor", the line breaks are now as expected. However, the output that gets submitted to the webserver (when I am in "rich text editor" mode) is still all bunched up together.
Comment #4
wwalc commentedOoops. I missed that part. Hopefully now it is fixed.
Comment #5
wwalc commentedComment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
dantina commentedHi,
I've just downloaded the new version (fckeditor-6.x-1.3-rc3) of FCKeditor and the line break problem is still not fixed. The texts just run into together and line breaks are ignored when viewed. Please help.
dantina.
Comment #8
wwalc commentedCheck the latest 6.x-1.x dev release, remember to clear browser's cache (and any other javascript cache) after upgrading.
Comment #9
drupalfan2 commentedWhen a member edits a node with FCKeditor enabled that they had previously authored without using FCKeditor (just the plain textarea box), all linebreaks are removed. The paragraphs run into each other.
This problem still exists!
Can you tell me where the solution of this problem is?