-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
General InterfaceParts of the UI which don't fall neatly under other labels.Parts of the UI which don't fall neatly under other labels.
Description
Description
I hooked up the editor.BlockEdit and added my own InspectorControls as follows.
const withInspectorControls = createHigherOrderComponent((BlockEdit) => {
return (props) => {
return (
<>
<BlockEdit {...props} />
<InspectorControls>
<PanelBody title='My Control'>My Control</PanelBody>
</InspectorControls>
</>
);
};
}, 'withInspectorControl');
addFilter('editor.BlockEdit', 'wpse', withInspectorControls);It will be placed after all core panels, i.e. just before the Advanced panel in wordpress 5.8.3
However, for some reason, it is placed between the core panels, i.e. in front of the Typography panel in WordPress 5.9 (RC-1).
I have read the documentation and source for InspectorControls, but I could not understand why this behavior occurs.
Is there any way to place my own InspectorControls after all the core panels?
Step-by-step reproduction instructions
Please look at the code in the description.
Screenshots, screen recording, code snippet
Environment info
- WordPress 5.8.3 and 5.9 RC-1
- Gutenberg 12.3.0(I tested both with the gutenberg plugin enabled and disabled.)
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
General InterfaceParts of the UI which don't fall neatly under other labels.Parts of the UI which don't fall neatly under other labels.
