I have FCKeditor installed and working but I think the line break is not functioning correctly. When I'm editing in rich text mode and press enter, only 1 line break shows up, when I press shift+enter, I still get one line break. When I switch to the plain text editor, the correct code has been inserted, but there are no line breaks there either, even though I have "Apply source formatting" set to true.
Any ideas on why this isn't showing up like it does on the Demo (http://www.fckeditor.net/demo/) site? I have not changed anything from the default install, have fckeditor 2.5.1 installed, and have removed the line break filter from my input formats.
Comments
Comment #1
jadwigo commentedwill you please read about filters http://drupal.org/handbook/modules/filter
this is in the documentation and is the default drupal behaviour since ever
Comment #2
spanders commentedI guess I understand that is by design, maybe I should have asked the question different. How can I edit my settings so that when I press enter in rich-text mode I get a paragraph break to show up in th editor window and press shift+enter to get a single line break to show? In short, how to I make my installation work handle line breaks like the demo site does?
Comment #3
spanders commentedFound this is a CSS issue in FCKeditor, not an input filter issue. When I changed the setting for "Editor CSS:" from theme default to fckeditor default the line breaks started showing up as they do in the demo.
Comment #4
lindsayo commentedMy Editor CSS: setting is set to fckeditor default, but still the line breaks don't work. This is driving me crazy. I can't get the post to have any spaces between the paragraphs.
Comment #5
lindsayo commentedOkay, I figured this out. I know I'm slow....
I had to change my input format (administer>site configuration>input formats). I made a custom input format, and turned off the line break converter. Now posts work fine, regardless of fckeditor being installed or not.
Comment #6
junelle commentedI have done all these but still my line break is not working :( version 6 (latest)
Comment #7
hikinandbikin commentedI am in the same boat. I get no line breaks when I use either enter or shift-enter.Can someone post a list of the things we should have set to make this behave correctly. I am running Drupal 6.2 with the 1.2-1 FCKeditor.
Totally unrelated - we need to fix the search engine in Drupal.org. I couldn't find anything about this topic until I did an extensive google webwide search.
Wyatt
I will delete my previous post on this issue and consolidate the issue here.
Comment #8
zukalous commentedDid you go to the fckconfig website http://www.fckeditor.net/ and download the extra features? Then in localhost\modules\fckeditor\fckeditor directory there is fckconfig.js which has some config options.
Look for the line
you can set the Enter and Shift Enter behavior there
Comment #9
nirvanajyothi commentedTry this
Go to Input Formats admin/settings/filters and
Configure HTML filter admin/settings/filters/1/configure
Add to Allowed tags
<br> <p>tagsNote Line Break converter needs to be enabled admin/settings/filters/1(Its enabled by default,so dont disable it)
Please report if this works.
For reducing the spacing on 'Enter' try changing FCK editor settings--Cleanup n Output --Enter mode to
<br>and Shift + Enter mode to<p>Comment #10
swami commentedI had the same issue & this works for me. Thanks.
I added
and
to the list of allowed tags for Filtered Html.
Comment #11
davidinnes commented@nirvanajyothi: I had the same general problem with disappearing line breaks. #9 fixes it perfectly (and, of course, appropriately.)
Swapping enter and shift+enter mode values helped a ton. Thanks!
Comment #12
aerel commentedI had this same problem and tried everything and I finally figured it out in case anyone does what I did. I set full html as the default and added the p and br tags to full html filters but it still won't work unless you add them to filtered html as well. :P
Comment #13
mindewen commentedI had the same problem, where the output of the body was just one long paragraph even if I tried to put in a paragraph break or line break. Adding the p and br tags to the filtered html worked for me, too.