Admin config setting "ck_editor_enter_mode_value" BT#15259

Changes the default ckeditor enter mode value.

https://ckeditor.com/docs/ckeditor4/latest/features/enterkey.html
pull/3023/head
Julio 7 years ago
parent f15e8d41e7
commit dcc8b86dff
  1. 5
      main/inc/lib/javascript/ckeditor/config_js.php
  2. 3
      main/install/configuration.dist.php

@ -39,5 +39,10 @@ foreach ($languageList['all'] as $language) {
$template->assign('language_list', implode("','", $list));
$enterMode = api_get_configuration_value('ck_editor_enter_mode_value');
if (!empty($enterMode)) {
$template->assign('enter_mode', $enterMode);
}
header('Content-type: application/x-javascript');
$template->display($template->get_template('javascript/editor/ckeditor/config_js.tpl'));

@ -1328,6 +1328,9 @@ requires extension "php-soap" sudo apt-get install php-soap
// Allow teachers to decide which skills are assigned through their courses
// $_configuration['skills_teachers_can_assign_skills'] = false;
// Changes the ck editor enter mode value. Default: CKEDITOR.ENTER_P
// $_configuration['ck_editor_enter_mode_value'] = 'CKEDITOR.ENTER_BR';
// KEEP THIS AT THE END
// -------- Custom DB changes
// Add user activation by confirmation email

Loading…
Cancel
Save