mirror of
https://github.com/docmost/docmost.git
synced 2025-11-25 05:01:18 +10:00
fix attachmentId render
This commit is contained in:
@ -80,7 +80,7 @@ export const TiptapImage = Image.extend<ImageOptions>({
|
|||||||
default: undefined,
|
default: undefined,
|
||||||
parseHTML: (element) => element.getAttribute("data-attachment-id"),
|
parseHTML: (element) => element.getAttribute("data-attachment-id"),
|
||||||
renderHTML: (attributes: ImageAttributes) => ({
|
renderHTML: (attributes: ImageAttributes) => ({
|
||||||
"data-attachment-id": attributes.align,
|
"data-attachment-id": attributes.attachmentId,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
|
|||||||
Reference in New Issue
Block a user