fix: embed dropped images as data URLs and prevent duplicate attachment #163

This commit is contained in:
Linus Rath
2026-04-09 19:50:42 +02:00
parent d0cc439fd1
commit f19aaf6207
2 changed files with 13 additions and 11 deletions
+1
View File
@@ -118,6 +118,7 @@ export function RichTextEditor({
);
if (imageFiles.length === 0) return false;
event.preventDefault();
event.stopPropagation();
for (const file of imageFiles) {
upload(file).then((url) => {
if (url) {