From 25317c624f3856c15ceb98b8cea66e32842c9c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20K=C3=BChnel?= Date: Thu, 17 Nov 2022 19:56:47 +0100 Subject: [PATCH] fix(AdminBundle): make it possible to configure toolbarGroups in customConfig --- .../Resources/public/js/pimcore/document/editables/wysiwyg.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundles/AdminBundle/Resources/public/js/pimcore/document/editables/wysiwyg.js b/bundles/AdminBundle/Resources/public/js/pimcore/document/editables/wysiwyg.js index 90beba43a08..9918ccb2e4b 100644 --- a/bundles/AdminBundle/Resources/public/js/pimcore/document/editables/wysiwyg.js +++ b/bundles/AdminBundle/Resources/public/js/pimcore/document/editables/wysiwyg.js @@ -94,6 +94,10 @@ pimcore.document.editables.wysiwyg = Class.create(pimcore.document.editable, { { name: 'styles' }, { name: 'tools', groups: ['colors', "tools", 'cleanup', 'mode', "others"] } ]; + } else { + // make sure "false" value is not passed along to CKEditor, only settings in + // potential customConfig + delete specificConfig.toolbarGroups; } delete specificConfig.width;