From 95b49ffee8365fdd80c983af99232be4b62c7220 Mon Sep 17 00:00:00 2001 From: i-just Date: Thu, 12 Mar 2026 11:56:28 +0100 Subject: [PATCH 1/2] merge toolbar config, don't override --- src/Field.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Field.php b/src/Field.php index a059ed5..b1b7a98 100644 --- a/src/Field.php +++ b/src/Field.php @@ -1446,13 +1446,15 @@ private function _inputHtml(mixed $value, ?ElementInterface $element, bool $stat language: $languageJs, }, $baseConfigJs, $configOptionsJs, { plugins: $configPlugins, - toolbar: { - items: $toolbarJs - }, removePlugins: [] }); + if (!jQuery.isPlainObject(config.toolbar)) { + config.toolbar = {}; + } + config.toolbar.items = $toolbarJs; + // special case for heading config, because of the Heading Levels // see https://github.com/craftcms/ckeditor/issues/431 const baseHeadings = $baseConfigJs?.heading?.options; From 1658d9b90ff418de4f957072eec0a78ae29242e4 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Thu, 12 Mar 2026 09:18:37 -0700 Subject: [PATCH 2/2] Release note [ci skip] --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c44f8a9..b7675a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Release Notes for CKEditor for Craft CMS +## Unreleased + +- Fixed a bug where custom `toolbar` config settings were getting ignored. ([#522](https://github.com/craftcms/ckeditor/issues/522)) + ## 5.1.0 - 2026-03-05 - Updated CKEditor 5 to 47.6.0. ([#518](https://github.com/craftcms/ckeditor/pull/518))