-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended[Type] Plugin InteroperabilityIncompatibilities between a specific plugin and the block editor. Close with workaround notes.Incompatibilities between a specific plugin and the block editor. Close with workaround notes.
Description
Description
In older version of Gutenberg we could replace the "Additional CSS Class(es)" field with our own (with autocomplete for example) by simply using something like:
removeFilter(
'editor.BlockEdit',
'core/editor/custom-class-name/with-inspector-control',
)
addFilter(
'editor.BlockEdit',
'site/custom-class-name/withInspectorControls',
withInspectorControls,
)Now core does not add the core/editor/custom-class-name/with-inspector-control filter, so the removeFilter code above does not remove the custom class name field, so we end up with a duplicate field. This seems to be the commit that changes it: a9cbc06
This affects our Block Class Autocomplete plugin (source) and the more popular EditorsKit plugin (source).
Step-by-step reproduction instructions
- Install either plugin referenced above
- Edit page
- Select a block
- Open Advanced Inspector panel
- See duplicate Custom CSS Class(es) field
Screenshots, screen recording, code snippet
Environment info
- WordPress 6.5.2 (bundled Gutenberg version)
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended[Type] Plugin InteroperabilityIncompatibilities between a specific plugin and the block editor. Close with workaround notes.Incompatibilities between a specific plugin and the block editor. Close with workaround notes.
