diff --git a/packages/core/src/ExtensionManager.ts b/packages/core/src/ExtensionManager.ts index 314bb7fa..4d129bf9 100644 --- a/packages/core/src/ExtensionManager.ts +++ b/packages/core/src/ExtensionManager.ts @@ -250,8 +250,7 @@ export default class ExtensionManager { return Object.fromEntries(nodeExtensions .filter(extension => !!getExtensionField(extension, 'addNodeView')) .map(extension => { - const name = getExtensionField(extension, 'name') - const extensionAttributes = this.attributes.filter(attribute => attribute.type === name) + const extensionAttributes = this.attributes.filter(attribute => attribute.type === extension.name) const context = { options: extension.options, editor, diff --git a/packages/core/src/helpers/getAttributesFromExtensions.ts b/packages/core/src/helpers/getAttributesFromExtensions.ts index c70923e3..1c3ff0d4 100644 --- a/packages/core/src/helpers/getAttributesFromExtensions.ts +++ b/packages/core/src/helpers/getAttributesFromExtensions.ts @@ -84,7 +84,7 @@ export default function getAttributesFromExtensions(extensions: Extensions): Ext .entries(attributes) .forEach(([name, attribute]) => { extensionAttributes.push({ - type: getExtensionField(extension, 'name'), + type: extension.name, name, attribute: { ...defaultAttribute,