mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Set CKEDITOR.toolbarMode to make the current setting available in config.js
This commit is contained in:
parent
1fc808e77e
commit
42baab1c2c
1 changed files with 3 additions and 0 deletions
|
|
@ -185,6 +185,7 @@ var auto_saved_msg = "{$lang->msg_auto_saved}";
|
||||||
|
|
||||||
// Define the simple toolbar.
|
// Define the simple toolbar.
|
||||||
<!--@if($editor_toolbar === 'simple')-->
|
<!--@if($editor_toolbar === 'simple')-->
|
||||||
|
CKEDITOR.toolbarMode = 'simple';
|
||||||
settings.ckeconfig.toolbar = [
|
settings.ckeconfig.toolbar = [
|
||||||
{ name: 'styles', items: [ 'Font', 'FontSize', '-', 'Bold', 'Italic', 'Underline', 'Strike', 'TextColor', 'BGColor' ] },
|
{ name: 'styles', items: [ 'Font', 'FontSize', '-', 'Bold', 'Italic', 'Underline', 'Strike', 'TextColor', 'BGColor' ] },
|
||||||
{ name: 'paragraph', items: [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight' ] },
|
{ 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: 'insert', items: [ 'Link', 'Image', 'Table' ] },
|
||||||
{ name: 'tools', items: [ 'Maximize', '-', 'Source' ] }
|
{ name: 'tools', items: [ 'Maximize', '-', 'Source' ] }
|
||||||
];
|
];
|
||||||
|
<!--@else-->
|
||||||
|
CKEDITOR.toolbarMode = 'default';
|
||||||
<!--@endif-->
|
<!--@endif-->
|
||||||
|
|
||||||
<!--@if(!$html_mode)-->
|
<!--@if(!$html_mode)-->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue