@jverneaut/html-to-gutenberg
Version:
Create custom Gutenberg blocks from the HTML templates you already have.
17 lines (12 loc) • 476 B
JavaScript
import RootAttributeExtractor from "./RootAttributeExtractor.js";
export default class DataEditorStyle extends RootAttributeExtractor {
static attributeName = "dataEditorStyle";
static blockDataName = "editorStyle";
transformAttributeValue(attributeValue) {
const transformedAttributeValue = super.transformAttributeValue(
attributeValue,
);
this.blockData._dependencies.push(transformedAttributeValue);
return transformedAttributeValue;
}
}