File tree Expand file tree Collapse file tree 2 files changed +846
-931
lines changed Expand file tree Collapse file tree 2 files changed +846
-931
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import Inspector from './inspector';
15
15
import { __ , sprintf } from '@wordpress/i18n' ;
16
16
import apiFetch from '@wordpress/api-fetch' ;
17
17
import { Component , Fragment } from '@wordpress/element' ;
18
+ import { InspectorControls } from '@wordpress/block-editor' ;
18
19
import {
19
20
unescapeHTML ,
20
21
filterData ,
@@ -425,9 +426,17 @@ class Editor extends Component {
425
426
render ( ) {
426
427
return (
427
428
< Fragment >
428
- { 'fetched' === this . state . route && (
429
- < Inspector edit = { this } state = { this . state } { ...this . props } />
430
- ) }
429
+ < InspectorControls key = "inspector" >
430
+ < div >
431
+ { 'fetched' === this . state . route && (
432
+ < Inspector
433
+ edit = { this }
434
+ state = { this . state }
435
+ { ...this . props }
436
+ />
437
+ ) }
438
+ </ div >
439
+ </ InspectorControls >
431
440
{ 'home' === this . state . route && (
432
441
< div className = { this . props . className } >
433
442
< Placeholder
You can’t perform that action at this time.
0 commit comments