@wordpress/block-library
Version:
Block library for the WordPress editor.
13 lines (12 loc) • 420 B
JavaScript
import { createBlock } from "@wordpress/blocks";
// packages/block-library/src/nextpage/transforms.js
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 { transforms as default };
//# sourceMappingURL=transforms.mjs.map