add data-attribute fallback to attribute parser

This commit is contained in:
Philipp Kühn
2020-10-24 23:53:56 +02:00
parent c85844ae11
commit 16d52d05a0
5 changed files with 51 additions and 53 deletions

View File

@@ -14,8 +14,8 @@ export default function getAttributesFromExtensions(extensions: Extensions) {
const defaultAttribute: Required<Attribute> = {
default: null,
rendered: true,
renderHTML: () => ({}),
parseHTML: () => ({}),
renderHTML: null,
parseHTML: null,
}
extensions.forEach(extension => {