mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 15:34:05 +08:00
refactor: Image node and view clean-up
This commit is contained in:
@@ -91,11 +91,14 @@ export const TiptapImage = Image.extend<ImageOptions>({
|
||||
"data-size": attributes.size,
|
||||
}),
|
||||
},
|
||||
placeholderId: {
|
||||
default: null,
|
||||
rendered: false,
|
||||
},
|
||||
aspectRatio: {
|
||||
default: null,
|
||||
parseHTML: (element) => element.getAttribute("data-aspect-ratio"),
|
||||
renderHTML: (attributes: ImageAttributes) => ({
|
||||
"data-aspect-ratio": attributes.aspectRatio,
|
||||
}),
|
||||
},
|
||||
placeholderId: {
|
||||
default: null,
|
||||
rendered: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user