Skip to content

Commit

Permalink
Use InspectorControls from @wordpress/block-editor (#22153)
Browse files Browse the repository at this point in the history
  • Loading branch information
earnjam authored May 7, 2020
1 parent 54c1b30 commit 969a928
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/designers-developers/developers/filters/block-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ To simplify the process of registering and unregistering block styles, two serve

The `register_block_style` function receives the name of the block as the first argument and an array describing properties of the style as the second argument.

The properties of the style array must include `name` and `label`:
The properties of the style array must include `name` and `label`:
- `name`: The identifier of the style used to compute a CSS class.
- `label`: A human-readable label for the style.

Expand Down Expand Up @@ -231,7 +231,7 @@ var withInspectorControls = wp.compose.createHigherOrderComponent( function( Blo
props
),
el(
wp.editor.InspectorControls,
wp.blockEditor.InspectorControls,
{},
el(
wp.components.PanelBody,
Expand All @@ -249,7 +249,7 @@ wp.hooks.addFilter( 'editor.BlockEdit', 'my-plugin/with-inspector-controls', wit
```js
const { createHigherOrderComponent } = wp.compose;
const { Fragment } = wp.element;
const { InspectorControls } = wp.editor;
const { InspectorControls } = wp.blockEditor;
const { PanelBody } = wp.components;

const withInspectorControls = createHigherOrderComponent( ( BlockEdit ) => {
Expand Down

0 comments on commit 969a928

Please sign in to comment.