Skip to content

Instantly share code, notes, and snippets.

@kharissulistiyo
Created January 6, 2020 23:14
Show Gist options
  • Save kharissulistiyo/97949b721019c57e92ab1d83dada722a to your computer and use it in GitHub Desktop.
Save kharissulistiyo/97949b721019c57e92ab1d83dada722a to your computer and use it in GitHub Desktop.
Kharis Sulistiyono: Basic block.js
/**
*
* To do:
* formatting on the screen so it's not all bunched
* options for various outputs
* styling
*
*/
( function( blocks, editor, i18n, element, components, _ ) {
var el = element.createElement;
var RichText = editor.RichText;
var MediaUpload = editor.MediaUpload;
blocks.registerBlockType( 'risbl/risbl-card-block', {
title: i18n.__( 'Card', 'risbl-card-block' ),
icon: 'welcome-widgets-menus',
category: 'layout',
attributes: {
},
edit: function( props ) {
},
save: function( props ) {
},
});
})(
window.wp.blocks,
window.wp.editor,
window.wp.i18n,
window.wp.element,
window.wp.components,
window._,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment