mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
Cast node attrs to string
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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}`,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user