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

jadwigo’s picture

Status: Active » Closed (works as designed)

will you please read about filters http://drupal.org/handbook/modules/filter

this is in the documentation and is the default drupal behaviour since ever

spanders’s picture

I 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?

spanders’s picture

Found 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.

lindsayo’s picture

My 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.

lindsayo’s picture

Okay, 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.

junelle’s picture

Version: 5.x-2.x-dev » 6.x-1.1

I have done all these but still my line break is not working :( version 6 (latest)

hikinandbikin’s picture

Version: 6.x-1.1 » 6.x-1.2-1

I 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.

zukalous’s picture

Did 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

FCKConfig.EnterMode = 'p' ;			// p | div | br
FCKConfig.ShiftEnterMode = 'br' ;	// p | div | br

you can set the Enter and Shift Enter behavior there

nirvanajyothi’s picture

Try this
Go to Input Formats admin/settings/filters and
Configure HTML filter admin/settings/filters/1/configure
Add to Allowed tags <br> <p> tags

Note 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>

swami’s picture

I had the same issue & this works for me. Thanks.
I added

and
to the list of allowed tags for Filtered Html.

davidinnes’s picture

@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!

aerel’s picture

I 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

mindewen’s picture

I 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.