The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




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)