rename attributes to HTMLAttributes

This commit is contained in:
Philipp Kühn
2020-11-13 16:07:20 +01:00
parent 5bccbacf32
commit c840a562de
25 changed files with 55 additions and 51 deletions

View File

@@ -50,7 +50,7 @@ export default function getSchema(extensions: Extensions): Schema {
if (extension.renderHTML) {
schema.toDOM = node => (extension.renderHTML as Function)?.bind(context)({
node,
attributes: getRenderedAttributes(node, extensionAttributes),
HTMLAttributes: getRenderedAttributes(node, extensionAttributes),
})
}
@@ -79,7 +79,7 @@ export default function getSchema(extensions: Extensions): Schema {
if (extension.renderHTML) {
schema.toDOM = mark => (extension.renderHTML as Function)?.bind(context)({
mark,
attributes: getRenderedAttributes(mark, extensionAttributes),
HTMLAttributes: getRenderedAttributes(mark, extensionAttributes),
})
}