@@ -6,6 +6,11 @@ import {
6
6
setDefaultBlockName ,
7
7
setUnknownTypeHandlerName ,
8
8
} from '../api' ;
9
+ import * as paragraph from './paragraph' ;
10
+ import * as image from './image' ;
11
+ import * as heading from './heading' ;
12
+ import * as quote from './quote' ;
13
+ import * as gallery from './gallery' ;
9
14
import * as audio from './audio' ;
10
15
import * as button from './button' ;
11
16
import * as categories from './categories' ;
@@ -14,17 +19,12 @@ import * as columns from './columns';
14
19
import * as coverImage from './cover-image' ;
15
20
import * as embed from './embed' ;
16
21
import * as freeform from './freeform' ;
17
- import * as gallery from './gallery' ;
18
- import * as heading from './heading' ;
19
22
import * as html from './html' ;
20
- import * as image from './image' ;
21
23
import * as latestPosts from './latest-posts' ;
22
24
import * as list from './list' ;
23
25
import * as more from './more' ;
24
- import * as paragraph from './paragraph' ;
25
26
import * as preformatted from './preformatted' ;
26
27
import * as pullquote from './pullquote' ;
27
- import * as quote from './quote' ;
28
28
import * as reusableBlock from './block' ;
29
29
import * as separator from './separator' ;
30
30
import * as shortcode from './shortcode' ;
@@ -56,6 +56,16 @@ export const registerCoreBlocks = () => {
56
56
// unknown shortcodes — see `setUnknownTypeHandlerName`.
57
57
shortcode ,
58
58
59
+ // Common blocks are grouped at the top to prioritize their display
60
+ // in various contexts — like the inserter and auto-complete components.
61
+ paragraph ,
62
+ image ,
63
+ heading ,
64
+ gallery ,
65
+ list ,
66
+ quote ,
67
+
68
+ // Register all remaining core blocks.
59
69
audio ,
60
70
button ,
61
71
categories ,
@@ -66,17 +76,11 @@ export const registerCoreBlocks = () => {
66
76
...embed . common ,
67
77
...embed . others ,
68
78
freeform ,
69
- gallery ,
70
- heading ,
71
79
html ,
72
- image ,
73
- list ,
74
80
latestPosts ,
75
81
more ,
76
- paragraph ,
77
82
preformatted ,
78
83
pullquote ,
79
- quote ,
80
84
reusableBlock ,
81
85
separator ,
82
86
subhead ,
0 commit comments