Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Fixed a bug where custom `toolbar` config settings were getting ignored. ([#522](https://github.com/craftcms/ckeditor/issues/522))
- Fixed a bug where files uploaded to Assets fields could also be added to nearby CKEditor fields. ([#523](https://github.com/craftcms/ckeditor/issues/523))
- Fixed an error that could occur when registering a custom CKEditor plugin. ([#525](https://github.com/craftcms/ckeditor/issues/525))

## 5.1.0 - 2026-03-05

Expand Down
7 changes: 1 addition & 6 deletions src/helpers/CkeditorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,7 @@ public static function registerPackage(string $name, array $config): void
$plugins = $config['plugins'] ?? [];
$toolbarItems = $config['toolbarItems'] ?? [];

if (!isset(self::$pluginsByPackage[$name])) {
self::$pluginsByPackage[$name] = $plugins;
} else {
self::$pluginsByPackage[$name] = array_merge(self::$pluginsByPackage[$name], $plugins);
}

self::$pluginsByPackage[$name] = $plugins;
self::$toolbarItems[] = $toolbarItems;
self::$pluginButtonMap[] = [
'plugins' => $plugins,
Expand Down
Loading