Created
January 6, 2020 23:14
-
-
Save kharissulistiyo/97949b721019c57e92ab1d83dada722a to your computer and use it in GitHub Desktop.
Kharis Sulistiyono: Basic block.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* 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