FCKeditor - WHY: Disable Line break converter (not recommended)
akaserer - October 23, 2009 - 04:14
| Project: | FCKeditor - WYSIWYG HTML editor |
| Version: | 5.x-2.3 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
on http://drupal.fckeditor.net/troubleshooting#8 i can find the recommendation:
Possible workarounds:
* Enable Line break converter (not recommended).
why should i disable line-break converter if i use fckeditor???

#1
Because FCKeditor manages the XHTML for you: line breaks are added for code readability, so if they are also changed to XHTML line breaks (
<br />) unexpected line breaks might appear. The line break converter is useful only when you enter plain text. Does this answer your question?#2
i got an answer from the fckeditor-module-developer himself.
1.
first i turned off line-break filter in my default filter, which caused problems in comments and privatemessages also, as they were not shown with linebreaks. (i run a cron job to update all new entries evey hour with the solution from http://drupal.org/node/240633#comment-873722).
the thing is if a user doesnt use fckeditor by default, he will see
's in his non-html post.
2.
after that i turned on line-break filter in this filter and all the posts where ok, even the ones created in fckeditor
3.
the only problem i still have is if users switch from fckeditor to non-html mode on the node-add and node-edit page. if they switch the linebreaks are gone. (i tried wysiwyg-module with 2 filters - but still switching the mode removes linebreaks).
i think a good solution would be to convert linebreaks with javascript when switching between 2 modes (html and no-html mode in fckeditor)
thanks anyway for your answer.
you do a great job with fckeditor!!!
#3