coyote-team / coyote-wp

Wordpress Plug-in for Coyote
2 stars 2 forks source link

File issue with not being able to override inspectordetails for gutenber core blocks #57

Open jkva opened 4 years ago

jkva commented 3 years ago

@sinabahram how about this for an issue to file:

Issue title: Override core block InspectorControls panel Issue labels: [Feature: Extensibility] Issue description:

I'm working on a WordPress plugin which allows image alternative text to be managed through the Coyote Service. To ideally integrate, I would like to be able to hook into the core/image block and override the default rendering of the alt text input field in the block's InspectorControls, to:

  1. set it to readonly
  2. replace the value with the externally defined alt text for the image
  3. add clarifying link to the panel, e.g. Manage image description at Coyote service

Thus the plugin acts purely as a content filter and it not needing to modify the actual post content.

From what I can tell it's currently not possible to hook into core block InspectorControls rendering.

Potential related issues I've found:

sinabahram commented 3 years ago

Great stuff. Please CC me on the issue.

jkva commented 3 years ago

@sinabahram filed as https://github.com/WordPress/gutenberg/issues/27752, you should be able to nosy in on the issue from here.