diff --git a/apps/editor/src/wysiwyg/marks/link.ts b/apps/editor/src/wysiwyg/marks/link.ts index 32b05f818b..27ceeba4ec 100644 --- a/apps/editor/src/wysiwyg/marks/link.ts +++ b/apps/editor/src/wysiwyg/marks/link.ts @@ -53,8 +53,7 @@ export class Link extends Mark { attrs.rawHTML || 'a', { href: escapeXml(attrs.linkUrl), - // @ts-ignore - ...(this.linkAttributes as DOMOutputSpec), + ...this.linkAttributes, ...getCustomAttrs(attrs), }, ],