Fix mime attribute

This commit is contained in:
Philip Okugbe
2024-08-26 17:12:59 +01:00
committed by GitHub
parent 7dc37b933f
commit 77b541ec71

View File

@ -53,7 +53,7 @@ export const Attachment = Node.create<AttachmentOptions>({
"data-attachment-name": attributes.name,
}),
},
extension: {
mime: {
default: undefined,
parseHTML: (element) => element.getAttribute("data-attachment-mime"),
renderHTML: (attributes: AttachmentAttributes) => ({