fix: Display of videos in revision history

closes #6176
This commit is contained in:
Tom Moor
2023-12-01 23:15:34 -05:00
parent 2bbc384b5a
commit 25be2fee40
3 changed files with 26 additions and 9 deletions

View File

@@ -55,15 +55,21 @@ export default class Video extends Node {
},
],
toDOM: (node) => [
"video",
"div",
{
id: node.attrs.id,
src: sanitizeUrl(node.attrs.src),
controls: true,
width: node.attrs.width,
height: node.attrs.height,
class: "video",
},
node.attrs.title,
[
"video",
{
id: node.attrs.id,
src: sanitizeUrl(node.attrs.src),
controls: true,
width: node.attrs.width,
height: node.attrs.height,
},
node.attrs.title,
],
],
toPlainText: (node) => node.attrs.title,
};