Problem/Motivation
When you remove all configurable plugins (ie. Heading, Source, Language) from the toolbar, the "CKEditor5 plugin settings" vertical tabs section (#plugin-settings-wrapper) disappears completely from the form. This makes sense as there are no settings to configure.
Now, when you place the Heading, Source or Language plugin back on the toolbar, the plugin settings remain hidden. I think this happens because the AJAX command tries to update the no-longer-existing #plugin-settings-wrapper element.
Steps to reproduce
- Enable CKEditor5 module.
- Create a new text format (/admin/config/content/formats/add).
- Choose CKEditor 5 as Text Editor.
- Remove all configurable buttons (ie. having a corresponding vertical tab under "CKEditor5 plugin settings") from the toolbar. For a new format, this is only the "Heading" plugin.
- Verify that the "CKEditor5 plugin settings" vertical tabs disappear from the form.
- Drag the "Heading" button back onto the toolbar.
- Notice how "CKEditor5 plugin settings" does not reappear. This is the bug.
Proposed resolution
T.b.d.
Remaining tasks
- Write a failing test
- Fix the bug and the test
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
Not needed