Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enter key in admin panel (CKeditor tip)
#1
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.
Reply
#2
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...
My Github Repos: Github
Website: DigiMute
Reply
#3
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 ":" )
Reply




Users browsing this thread: 1 Guest(s)