@wordpress/block-library
Version:
Block library for the WordPress editor.
22 lines (20 loc) • 439 B
JavaScript
/**
* WordPress dependencies
*/
import { createBlock } from '@wordpress/blocks';
const transforms = {
from: [{
type: 'raw',
schema: {
'wp-block': {
attributes: ['data-block']
}
},
isMatch: node => node.dataset && node.dataset.block === 'core/nextpage',
transform() {
return createBlock('core/nextpage', {});
}
}]
};
export default transforms;
//# sourceMappingURL=transforms.js.map