diff --git a/shared/editor/nodes/Attachment.tsx b/shared/editor/nodes/Attachment.tsx index 64a5725bf6..73c5908ae5 100644 --- a/shared/editor/nodes/Attachment.tsx +++ b/shared/editor/nodes/Attachment.tsx @@ -63,7 +63,7 @@ export default class Attachment extends Node { download: node.attrs.title, "data-size": node.attrs.size, }, - node.attrs.title, + String(node.attrs.title), ], toPlainText: (node) => node.attrs.title, }; diff --git a/shared/editor/nodes/Mention.ts b/shared/editor/nodes/Mention.ts index 761fdabb53..59e8f69fd8 100644 --- a/shared/editor/nodes/Mention.ts +++ b/shared/editor/nodes/Mention.ts @@ -59,7 +59,7 @@ export default class Mention extends Extension { "data-actorId": node.attrs.actorId, "data-url": `mention://${node.attrs.id}/${node.attrs.type}/${node.attrs.modelId}`, }, - node.attrs.label, + String(node.attrs.label), ], toPlainText: (node) => `@${node.attrs.label}`, }; diff --git a/shared/editor/nodes/Video.tsx b/shared/editor/nodes/Video.tsx index c92e9121f4..7c9b268bc8 100644 --- a/shared/editor/nodes/Video.tsx +++ b/shared/editor/nodes/Video.tsx @@ -71,7 +71,7 @@ export default class Video extends Node { width: node.attrs.width, height: node.attrs.height, }, - node.attrs.title, + String(node.attrs.title), ], ], toPlainText: (node) => node.attrs.title,