From 42baab1c2c29f664cd3d9e852476a405330ee645 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 20 Dec 2022 12:37:08 +0900 Subject: [PATCH] Set CKEDITOR.toolbarMode to make the current setting available in config.js --- modules/editor/skins/ckeditor/editor.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/editor/skins/ckeditor/editor.html b/modules/editor/skins/ckeditor/editor.html index 991ae9c24..29219b310 100644 --- a/modules/editor/skins/ckeditor/editor.html +++ b/modules/editor/skins/ckeditor/editor.html @@ -185,6 +185,7 @@ var auto_saved_msg = "{$lang->msg_auto_saved}"; // Define the simple toolbar. + CKEDITOR.toolbarMode = 'simple'; settings.ckeconfig.toolbar = [ { name: 'styles', items: [ 'Font', 'FontSize', '-', 'Bold', 'Italic', 'Underline', 'Strike', 'TextColor', 'BGColor' ] }, { name: 'paragraph', items: [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight' ] }, @@ -192,6 +193,8 @@ var auto_saved_msg = "{$lang->msg_auto_saved}"; { name: 'insert', items: [ 'Link', 'Image', 'Table' ] }, { name: 'tools', items: [ 'Maximize', '-', 'Source' ] } ]; + + CKEDITOR.toolbarMode = 'default';