From cd653ddc882f8a4376c775eccf2ac7dff771555d Mon Sep 17 00:00:00 2001 From: PululuK Date: Fri, 6 Oct 2023 16:15:05 +0200 Subject: [PATCH] Add tynmce hr plugin & toolbar --- admin-dev/themes/new-theme/js/components/tinymce-editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin-dev/themes/new-theme/js/components/tinymce-editor.js b/admin-dev/themes/new-theme/js/components/tinymce-editor.js index 91915e156e6ce..29b5079dd19ff 100644 --- a/admin-dev/themes/new-theme/js/components/tinymce-editor.js +++ b/admin-dev/themes/new-theme/js/components/tinymce-editor.js @@ -80,11 +80,11 @@ class TinyMCEEditor { initTinyMCE(config) { const cfg = { selector: '.rte', - plugins: 'align colorpicker link image filemanager table media placeholder lists advlist code table autoresize', + plugins: 'align colorpicker link image filemanager table media placeholder lists advlist code table autoresize hr', browser_spellcheck: true, toolbar1: /* eslint-disable-next-line max-len */ - 'code,colorpicker,bold,italic,underline,strikethrough,blockquote,link,align,bullist,numlist,table,image,media,formatselect', + 'code,colorpicker,bold,italic,underline,strikethrough,blockquote,link,align,bullist,numlist,table,image,media,formatselect,hr', toolbar2: '', language: window.iso_user, external_filemanager_path: `${config.baseAdminUrl}filemanager/`,