1 |
|
2 |
|
3 |
|
4 | import { registerBlockType, setDefaultBlockName } from '@wordpress/blocks';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import * as code from './code';
|
10 | import * as heading from './heading';
|
11 | import * as more from './more';
|
12 | import * as paragraph from './paragraph';
|
13 | import * as image from './image';
|
14 | import * as nextpage from './nextpage';
|
15 | export var registerCoreBlocks = function registerCoreBlocks() {
|
16 | [paragraph, heading, code, more, image, nextpage].forEach(function (_ref) {
|
17 | var name = _ref.name,
|
18 | settings = _ref.settings;
|
19 | registerBlockType(name, settings);
|
20 | });
|
21 | };
|
22 | setDefaultBlockName(paragraph.name);
|
23 |
|
\ | No newline at end of file |