Hi..

I want this setting:
FCKConfig.EnterMode = 'br' ; // p | div | br
FCKConfig.ShiftEnterMode = 'p' ; // p | div | br

I have tried this to make it work:

1.
Administer, Site configuration, FCKeditor settings, Advanced, Edit
In Cleanup and Output i set:
Enter Mode: = BR
SHIFT + ENTER Mode: = P

Saved it, and cleared browser cache.

Tried to add a new page.... and FCKeditor still insert P tag when I press Enter key.

2.
Then I tried to set these lines manually in fckconfig.js here:
sites\all\modules\fckeditor\fckeditor

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

Saved it and cleared cache...
Tried to add a new page.... and FCKeditor still insert P tag when I press Enter key.

3.
Did the same as in #2 above but for fckeditor.config.js here:
sites\all\modules\fckeditor

Saved it and cleared cache...
Tried to add a new page.... and FCKeditor still insert P tag when I press Enter key.

So basically I'm stuck.....

What am I doing wrong here.

What do I have to change to make it work the way I want?

Regards

Comments

wwalc’s picture

Status: Active » Postponed (maintainer needs more info)

Check the HTML source of a page and search for

Config['EnterMode']

The right place to change this setting is to set it in the FCKeditor profile (not in fckeditor.config.js or fckconfig.js ).
Remove EnterMode setting from fckeditor.config.js, make sure that you have edited the right FCKeditor profile and it should work.

logicalpat’s picture

Version: 6.x-1.3-rc6 » 6.x-1.3
Status: Postponed (maintainer needs more info) » Active

I seem to have this same problem. I've tried setting mine to use

tags instead of

but it still puts

tags around content on fields where FCKEditor is enabled.

Jorrit’s picture

Status: Active » Closed (fixed)

If this still is a problem, please read http://drupal.fckeditor.net/supportrequest and re-open this issue.

atuline’s picture

I'm probably submitting this wrong. Apologies if so. Thought I'd add to this in that I've experienced a similar problem with Drupal 6.15, WYSIWYG 2.0 and FCKEditor 2.6.5.

I'm trying to configure fckconfig.js so that when someone does a text C&P, we get p tags and not a br between paragraphs. I tried changing FCKConfig.ShiftEnterMode = 'b' to 'p' but it didn't seem to have any effect. Lines as follows:

FCKConfig.EnterMode = 'p' ;
FCKConfig.ShiftEnterMode = 'p';

Someone above said to:

"Check the HTML source of a page and search for Config['EnterMode']

The right place to change this setting is to set it in the FCKeditor profile (not in fckeditor.config.js or fckconfig.js )."

Going through the WYSIWYG module configuration pages for FCKEditor, I can't see what he's talking about. As a result, the .js file is the ONLY place I can see to modify this value. I checked the source code of 'a page' where the editor was active and did not see that string.

They also pointed us to http://drupal.fckeditor.net/supportrequest, but I couldn't see anything relevant.

Jorrit’s picture

I guess that you are using the WYSIWYG module, not the FCKeditor module. You should ask support at http://drupal.org/project/wysiwyg.