GetSimple Support Forum

Full Version: Enter key in admin panel (CKeditor tip)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In GetSimple's page editor (CKeditor), tf you want the Enter key insert a carriage return (<br />) instead of a "blank line" and new paragraph (</p><p>):

Edit admin/template/js/ckeditor/config.js, between lines 8 to 11 insert this:

Code:
config.enterMode = CKEDITOR.ENTER_BR;

before the closing:
Code:
};

This may be more intuitive for most users, used to their wordprocessor.
Or if you are using the latest build just edit GSCONFIG.PHP

and edit the line for

Code:
#define('GSEDITOROPTIONS', '');

and change to

Code:
#define('GSEDITOROPTIONS', 'enterMode : CKEDITOR.ENTER_BR');

This saves you having to edit the core files.

If you want to add multiple values to this setting separate each one with a comma.

Rgds, MIke.


Edit: thanks for the info below, Carlos...
Thanks Mike, that's a nice new option that I didn't know (I have seen now you added it in the SVN -- I think it hadn't been documented or posted here).

I've tested with r178 and works ok, but with a small change. This should be the change to make in gsconfig.php:

Code:
define('GSEDITOROPTIONS', 'enterMode : CKEDITOR.ENTER_BR');

( I've removed "config." and changed the "=" for a ":" )