UNPKG

@jverneaut/html-to-gutenberg

Version:

Create custom Gutenberg blocks from the HTML templates you already have.

11 lines (8 loc) 330 B
import RootAttributeExtractor from "./RootAttributeExtractor.js"; export default class DataParent extends RootAttributeExtractor { static attributeName = "dataParent"; static blockDataName = "parent"; transformAttributeValue(attributeValue) { return attributeValue.split(" ").filter((str) => str.trim() !== ""); } }