-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Handle the CKEditor5 option removePlugins properly
The removePlugins option needs to be assigned as an array in CKEditor5. While we recommended passing the option already as an array, CKEditor4 needed a comma-separated string. The conversion was only handled if the Integrator passed an array, which means if someone already provided a comma-separated string the option was simply passed as is to the Editor. To avoid javascript errors we are going to migrate it to array for now. The possibility to pass the option as a string is deprecated and will be removed with version 13. Resolves: #98613 Releases: main Change-Id: I36900917d751b0c47ea2f4a3256f3faade21f3f7 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76114 Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by: Benni Mack <benni@typo3.org> Tested-by: core-ci <typo3@b13.com> Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by: Benni Mack <benni@typo3.org>
- Loading branch information
1 parent
5532fb0
commit a710f8c
Showing
2 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
.../Changelog/12.1/Deprecation-98613-CKEditorRemovePluginConfigurationAsString.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
.. include:: /Includes.rst.txt | ||
|
||
=================================================================== | ||
Deprecation: #98613 - CKEditor removePlugin configuration as string | ||
=================================================================== | ||
|
||
See :issue:`98613` | ||
|
||
Description | ||
=========== | ||
|
||
The :yaml:`removePlugins` option needs to be assigned as an array in CKEditor 5. While we recommended passing the option | ||
already as an array, CKEditor 4 needed a comma-separated string. | ||
|
||
The conversion was only handled if the integrator passed an array, which means if someone already provided a | ||
comma-separated string the option was simply passed as-is to the editor configuration. | ||
|
||
To avoid JavaScript errors, we are going to migrate it to array for now. The possibility to pass the option as a string | ||
is deprecated and will be removed with TYPO3 v13. | ||
|
||
|
||
Impact | ||
====== | ||
|
||
Passing the CKEditor configuration :yaml:`removePlugins` as string will trigger a PHP :php:`E_USER_DEPRECATED` error. | ||
|
||
|
||
Affected installations | ||
====================== | ||
|
||
All installations that pass the CKEditor configuration :yaml:`removePlugins` as string. | ||
|
||
|
||
Migration | ||
========= | ||
|
||
Adjust your CKEditor configuration and pass :yaml:`removePlugins` as array. | ||
|
||
|
||
Before | ||
------ | ||
|
||
.. code-block:: yaml | ||
editor: | ||
config: | ||
removePlugins: image | ||
After | ||
----- | ||
|
||
.. code-block:: yaml | ||
editor: | ||
config: | ||
removePlugins: | ||
- image | ||
.. index:: RTE, NotScanned, ext:rte_ckeditor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters