Open bobbingwide opened 4 years ago
It would also be nice to implement an example for each block. The simplest way to do this is to add
example: {
},
into the registerBlockType
.
This works for most block, but not for the oik-block\address
block where the first display shows the HTML.
The example for the Search block didn't appear to work... for some reason the build paused itself! Actually, something's a bit flaky. It works sometimes.
Most, but not all of the code, has been changed to use import. eg
import { __ } from '@wordpress/i18n';
I haven't checked for deprecated messages recently.
Messages I've seen are:
Also the CSS class names of blocks are now prefixed
block-editor-
; waseditor-
. Some of the .scss files will need updating to ensure the blocks are correctly styled. e.gblockicon/style.css