Looking for some help with FCKEditor. I am fairly new to Drupal and have taken over maintenance for several Druapl sies for the company. FCKEditor is installed. When using FCKEditor, much of the formatting does not stick after submitting the page. For example, bullet points disappear, colors disappear, line breals also disappear.

Drupal 6.12 is installed. I am not sure which version of FCKEditor is installed though I would assume it is a recent one as the site was just put up less than a year ago. I also don't know where to find the version number of FCKEditor.

I would appreciate your help.

Comments

jmmec’s picture

Just guessing, but maybe your "input format" is set incorrectly and is stripping out a bunch of HTML tags? Take a look at the README.txt file that is in your fckeditor directory, and also take a look at your input formats.

Jim S’s picture

Thanks for your reply. I am using Full HTML so if I understand correctly, that will allow all tags? I ask because when I go into configure full html I see no place to add tags like I do in filtered html. Maybe this is where I am missing it though being new to both Drupal and FCKEditor.

Also, what did you mean by looking at the input formats?

MarkARgent’s picture

I'm getting a similar problem --- <p> getting turned into <br> when something is saved, though FCKeditor is set to treat hitting return as entering <p> and seems to accept this, but loose it on saving.

Jim S’s picture

Are you using full HTML as well?

jmmec’s picture

Hmm.. here is another wild guess:

Go to "Admin / FckEditor" and then check your profiles (e.g. Default / Advanced) under the "Security" settings to make sure that you don't have "HTML filter" selected.

Jim S’s picture

Ok, I am feeling like quite a dunce right now. I have looked under Admin / FckEditor under all the profiles and I do not see any security settings. I am struggling since I am new to both Drupal and FckEditor. I wonder if the issue lies with a setting in FckEditor that the guy who set it up set? Any pointers for me?

Thanks for your patience.

jmmec’s picture

Hmmm...

My previous response was asking you to check the FckEditor configuration under the "Security" section to make sure that the "HTML filter" was not checked. But maybe you did that?

My final guess is to check if FckEditor is configured to "use theme css" when editing -- maybe your theme CSS is different, so when you use FckEditor you are using its CSS (so bullets / etc show up), but when you save, your theme CSS kicks in, and everything is different.

MarkARgent’s picture

I can confirm that HTML filter is not checked under the security section of the FCKeditor configuration.

However, underneath the textarea which FCKeditor is handling, there is a "switch to plain text editor" link, and beneath that "input formats".

Clicking on "switch to plain text editor" establishes that new paragraphs are being marked with <p>

When I click on "input formats" that expands to offer three choices: "filtered HTML", "full HTML" and "image filtering", with the first of these selected. When I click "save" and look at the resulting HTML, <p> has been replaced by <br>. If I select "full HTML" then the <p> disappears completely (I assume it is replaced by a newline in the HTML source). If I select "image filtering" then the <p> is preserved.

That gives me a workaround, but suggests that the rules for "filtered HTML" and "full HTML" are wrong: where are these set?

jmmec’s picture

Yeah, take a look at your "Input Formats" under admin/settings/filters -- you'll see all 3 filters listed -- I'm not sure why you really need all three since it seems that you have an internal (private) website, if my assumption is correct.

This is what I do:

My site is a private "members only" site, so everyone has FULL HTML access when editing. This would not be recommended if it was a public website due to security concerns.

I only have one input format defined, named "Full HTML", where I only enable "HTML corrector" and "URL filter". I disable the "HTML filter" and the "Line break converter" (by the way, FckEditor should have "line break converter" disabled according to its instructions).

Since I only have 1 "input format" defined, members do not see the "input formats" section when editing content, so they are not able to select different input formats -- everything gets created with "Full HTML".

In your case, I don't know why an "image filtering" input format is needed, or why it would behave differently.

If your website is private, then I would delete the "filtered HTML" and "image filtering" filters, and only keep the "Full HTML" filter. I would then configure the "Full HTML" filter as noted above. Be sure to backup your database in case you need to fall back to having all 3 filters defined.

If you do need all 3 input formats, then you'll have to figure out the best way to configure them -- you might need to add some additional tags to the "Filtered HTML" so that certain content isn't stripped out. The FckEditor "README.txt" has a list of suggestions, though I find that some things don't work properly. For example, FckEditor uses span for highlighting, and even if you allow span, the input format seems to strip it out, unless you disable "filtered HTML", but in that case you essentially convert your "Filtered HTML" to "Full HTML" making "Filtered HTML" redundant; basic outcome is that highlighting won't work as intended, and perhaps other stuff.

Yeah, quite confusing....

Jim S’s picture

Sorry for the delay in responding, I do appreciate your input. I had a family medical emergency.

As I am just getting bck I need to read your response in detail and go through it. One thing though is you comment about checking Security settings in FCKeditor. I do not see where security settings are. Can you point me in thr proper directions?

Thanks

jmmec’s picture

Sure, go to "admin/settings/fckeditor" and you should see at least one (or maybe more) user profiles defined. Click "edit" to edit a profile. Each profile will have a "Security" section.

Hope everything is okay.

Regards

bwinett’s picture

I just noticed the same problem with bulleted lists. And I've found that there's a conflict with the Admin module. Do you have that installed?

sites/all/modules/admin/theme/reset.css contains the following a rule with the declarations:

  • list-style-position:inside
  • list-style-type:inherited

These were causing the bullets to be hidden.

I changed the FCKEditor configuration to use the default FCKEditor css rather than the theme css, and now I'm seeing the bullets.