You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TUTORIAL.md
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -219,9 +219,7 @@ Let's take a closer look at the `<Editor>` component we saw being used above.
219
219
Despite its name, this _is not_ the actual core of the block editor. Rather it is a _wrapper_ component we've created to contain the components which form the main body of our custom editor.
220
220
221
221
### Dependencies
222
-
The first thing we do is to pull in some dependencies. The most important of these are the internal components `BlockEditor` and `Sidebar`, which we will explore in greater detail shortly.
223
-
224
-
The remaining components are more static elements which form the layout and surrounding UI of the editor.
222
+
The first thing we do inside `<Editor>` is to pull in some dependencies.
225
223
226
224
```jsx
227
225
// src/editor.js
@@ -232,6 +230,10 @@ import Sidebar from 'components/sidebar';
232
230
importBlockEditorfrom'components/block-editor';
233
231
```
234
232
233
+
The most important of these are the internal components `BlockEditor` and `Sidebar`, which we will explore in greater detail shortly.
234
+
235
+
The remaining components are largely static elements which form the layout and surrounding UI of the editor.
236
+
235
237
### Editor Render
236
238
With these components available we can proceed to define our `<Editor>` component.
0 commit comments