Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * BLOCK: Recipe Step
- *
- */
- import IconFactory from '../../components/IconFactory';
- import Step from '../../components/Step';
- import schema from './schema';
- import './style.scss';
- import './editor.scss';
- const {__} = wp.i18n;
- const {registerBlockType} = wp.blocks;
- registerBlockType('rcp/block-step', {
- title: __('Recipe Step'),
- icon: (<IconFactory icon="step" />),
- category: 'rcp',
- attributes: schema,
- keywords: [
- __('Recipe Step'),
- __('Step'),
- ],
- edit: Step,
- save: Step.Content
- });
Add Comment
Please, Sign In to add comment