fix: use cid references for inline images #163

This commit is contained in:
Linus Rath
2026-04-18 00:57:46 +02:00
parent f05f70a9e5
commit d4f7ae522e
8 changed files with 115 additions and 34 deletions
+5
View File
@@ -113,6 +113,11 @@ export const ResizableImage = Node.create({
alt: { default: null },
title: { default: null },
width: { default: null },
cid: {
default: null,
parseHTML: (el) => el.getAttribute("data-cid"),
renderHTML: (attrs) => (attrs.cid ? { "data-cid": attrs.cid } : {}),
},
};
},