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
( function() { | |
const { registerBlockType } = wp.blocks; | |
const { createElement: el } = wp.element; | |
const { InnerBlocks } = wp.editor; | |
registerBlockType( 'block/id-deprecation', { | |
title: 'Test id deprecation', | |
icon: 'carrot', | |
category: 'common', |
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
( function() { | |
const { registerBlockType } = wp.blocks; | |
const { createElement: el } = wp.element; | |
const { InnerBlocks } = wp.editor; | |
registerBlockType( 'block/test-layouts', { | |
title: 'Test layouts', | |
icon: 'carrot', | |
category: 'common', |
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
( function() { | |
var registerBlockType = wp.blocks.registerBlockType; | |
var el = wp.element.createElement; | |
var InnerBlocks = wp.editor.InnerBlocks; | |
registerBlockType( 'test/parent', { | |
title: 'Test Parent', | |
icon: 'cart', | |
category: 'common', |
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
( function() { | |
var registerBlockType = wp.blocks.registerBlockType; | |
var el = wp.element.createElement; | |
registerBlockType( 'test/align', { | |
title: 'Test Align', | |
icon: 'cart', | |
category: 'common', | |
attributes: { | |
align: { |
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
( function() { | |
var registerBlockType = wp.blocks.registerBlockType; | |
var el = wp.element.createElement; | |
registerBlockType( 'test/wide-align', { | |
title: 'Test Wide Align', | |
icon: 'cart', | |
category: 'common', | |
attributes: { | |
align: { |
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
( function() { | |
var registerBlockType = wp.blocks.registerBlockType; | |
var el = wp.element.createElement; | |
registerBlockType( 'test/no-align-default-align', { | |
title: 'Test No Align and Default Align', | |
icon: 'cart', | |
category: 'common', | |
attributes: { | |
align: { |
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
( function() { | |
var registerBlockType = wp.blocks.registerBlockType; | |
var el = wp.element.createElement; | |
var InnerBlocks = wp.editor.InnerBlocks; | |
var __ = wp.i18n.__; | |
var ALLOWED_BLOCKS = [ 'core/image' ]; | |
var TEMPLATE = [ | |
[ 'core/image' ], | |
[ 'core/image' ], | |
[ 'core/image' ], |
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
( function() { | |
var registerBlockType = wp.blocks.registerBlockType; | |
var el = wp.element.createElement; | |
var MediaPlaceholder = wp.editor.MediaPlaceholder; | |
registerBlockType( 'test/media-upload', { | |
title: 'Test Media Upload', | |
icon: 'cart', | |
category: 'common', | |
attributes: { |
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
( function() { | |
var registerBlockType = wp.blocks.registerBlockType; | |
var el = wp.element.createElement; | |
var InnerBlocks = wp.editor.InnerBlocks; | |
var __ = wp.i18n.__; | |
var TEMPLATE = [ | |
[ 'core/paragraph', { fontSize: 'large', placeholder: 'Content…' } ], | |
]; | |
registerBlockType( 'myplugin/test-inner', { |
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
( function() { | |
var registerBlockType = wp.blocks.registerBlockType; | |
var el = wp.element.createElement; | |
var InnerBlocks = wp.editor.InnerBlocks; | |
var __ = wp.i18n.__; | |
var TEMPLATE = [ | |
[ 'core/paragraph', { content: 'p1'} ], | |
[ 'core/paragraph', { content: 'p2'} ], | |
]; |