diff --git a/modules/backend/formwidgets/RichEditor.php b/modules/backend/formwidgets/RichEditor.php index c8af07eab..75a291ba5 100644 --- a/modules/backend/formwidgets/RichEditor.php +++ b/modules/backend/formwidgets/RichEditor.php @@ -85,6 +85,7 @@ class RichEditor extends FormWidgetBase $this->vars['value'] = $this->getLoadValue(); $this->vars['toolbarButtons'] = $this->evalToolbarButtons(); + $this->vars['globalToolbarButtons'] = EditorSetting::getConfigured('html_toolbar_buttons'); $this->vars['allowEmptyTags'] = EditorSetting::getConfigured('html_allow_empty_tags'); $this->vars['allowTags'] = EditorSetting::getConfigured('html_allow_tags'); $this->vars['noWrapTags'] = EditorSetting::getConfigured('html_no_wrap_tags'); diff --git a/modules/backend/formwidgets/richeditor/partials/_richeditor.htm b/modules/backend/formwidgets/richeditor/partials/_richeditor.htm index 9df80113d..d04470b9c 100755 --- a/modules/backend/formwidgets/richeditor/partials/_richeditor.htm +++ b/modules/backend/formwidgets/richeditor/partials/_richeditor.htm @@ -8,7 +8,8 @@ data-fullpage="true" data-read-only="true" data-editor-lang="" - data-toolbar-buttons="" + data-toolbar-buttons="" + data-toolbar-buttons="" data-allow-empty-tags="" data-allow-tags="" data-no-wrap-tags="" diff --git a/modules/backend/lang/en/lang.php b/modules/backend/lang/en/lang.php index c5090c624..ff8036a8d 100644 --- a/modules/backend/lang/en/lang.php +++ b/modules/backend/lang/en/lang.php @@ -361,7 +361,9 @@ return [ 'no_wrap' => 'Do not wrap tags', 'no_wrap_comment' => 'The list of tags that should not be wrapped inside block tags.', 'remove_tags' => 'Remove tags', - 'remove_tags_comment' => 'The list of tags that are removed together with their content.' + 'remove_tags_comment' => 'The list of tags that are removed together with their content.', + 'toolbar_buttons' => 'Toolbar Buttons', + 'toolbar_buttons_comment' => 'The Toolbar Buttons to be displayed in the Rich Editor by default. [fullscreen, bold, italic, underline, strikeThrough, subscript, superscript, fontFamily, fontSize, |, color, emoticons, inlineStyle, paragraphStyle, |, paragraphFormat, align, formatOL, formatUL, outdent, indent, quote, insertHR, -, insertLink, insertImage, insertVideo, insertAudio, insertFile, insertTable, undo, redo, clearFormatting, selectAll, html]', ], 'tooltips' => [ 'preview_website' => 'Preview the website' diff --git a/modules/backend/models/editorsetting/fields.yaml b/modules/backend/models/editorsetting/fields.yaml index fef115f0b..ad4c746b0 100644 --- a/modules/backend/models/editorsetting/fields.yaml +++ b/modules/backend/models/editorsetting/fields.yaml @@ -95,3 +95,10 @@ tabs: tab: backend::lang.editor.markup_tags type: textarea span: auto + + html_toolbar_buttons: + label: backend::lang.editor.toolbar_buttons + comment: backend::lang.editor.toolbar_buttons_comment + tab: backend::lang.editor.toolbar_buttons + type: textarea + span: auto