Cast node attrs to string

This commit is contained in:
Tom Moor
2024-07-14 09:33:29 -04:00
parent c05a8cf73a
commit 82b2defac1
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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,
};
+1 -1
View File
@@ -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}`,
};
+1 -1
View File
@@ -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,