Guest User

Untitled

a guest
Nov 20th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. /**
  2. * BLOCK: Recipe Step
  3. *
  4. */
  5. import IconFactory from '../../components/IconFactory';
  6. import Step from '../../components/Step';
  7. import schema from './schema';
  8. import './style.scss';
  9. import './editor.scss';
  10.  
  11. const {__} = wp.i18n;
  12. const {registerBlockType} = wp.blocks;
  13.  
  14. registerBlockType('rcp/block-step', {
  15. title: __('Recipe Step'),
  16. icon: (<IconFactory icon="step" />),
  17. category: 'rcp',
  18. attributes: schema,
  19. keywords: [
  20. __('Recipe Step'),
  21. __('Step'),
  22. ],
  23. edit: Step,
  24. save: Step.Content
  25. });
Add Comment
Please, Sign In to add comment