GetSimple Support Forum
Enter key in admin panel (CKeditor tip) - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: Enter key in admin panel (CKeditor tip) (/showthread.php?tid=892)



Enter key in admin panel (CKeditor tip) - Carlos - 2010-08-26

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.


Enter key in admin panel (CKeditor tip) - n00dles101 - 2010-08-26

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


Enter key in admin panel (CKeditor tip) - Carlos - 2010-08-26

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 ":" )