Problem/Motivation
When trying to add a style to a filter format, e.g a class on an h2 or h3, if the class is allowed by another plugin, the user is presented with an error:
A style must only specify classes not supported by other plugins. The is-excluded classes on <h3> are already supported by the enabled Editor Widgets plugin.
In this case, I have an editor widget plugin that embeds a complex structured piece of markup for editing. H3 and H2 elements with the is-excluded class are allowed in it but this is distinctly separate from a simple h2 or h3 element added to the CKE.
I want to be able to apply this class to any h2 or h3 element via the styles plugin, it has no interaction with the editor widget plugin it's just a generic class used by both.
You can't even allow this via manual source editing because you get a similar error
The following attribute(s) are already supported by enabled plugins and should not be added to the Source Editing "Manually editable HTML tags" field: Style (<h2 class="is-excluded">), Editor Widgets (<h2 class="is-excluded">).
This means it's impossible to allow this class to be added to any h2 or h3 element outside of the editor widget plugin.
Steps to reproduce
Create a plugin that allows <h3 class="is-excluded"> in its elements config
Try to add an h3.is-excluded style to the filter format
Try to add the same to source editing config.
Proposed resolution
Disable this check? I'm not really sure there's a way to allow this otherwise.
This is semi-related to #3294908: Configuration overlaps between Styles and other CKE5 plugins
Comments
Comment #2
acbramley commented