fix attachmentId render

This commit is contained in:
Philipinho
2025-05-22 12:51:25 -07:00
parent 915b31b8bd
commit ef2a6be59b

View File

@ -57,7 +57,7 @@ export const TiptapVideo = Node.create<VideoOptions>({
default: undefined, default: undefined,
parseHTML: (element) => element.getAttribute("data-attachment-id"), parseHTML: (element) => element.getAttribute("data-attachment-id"),
renderHTML: (attributes: VideoAttributes) => ({ renderHTML: (attributes: VideoAttributes) => ({
"data-attachment-id": attributes.align, "data-attachment-id": attributes.attachmentId,
}), }),
}, },
width: { width: {