diff --git a/packages/app-desktop/gui/NoteEditor/utils/resourceHandling.ts b/packages/app-desktop/gui/NoteEditor/utils/resourceHandling.ts index 4f654de4995..51c5a868e26 100644 --- a/packages/app-desktop/gui/NoteEditor/utils/resourceHandling.ts +++ b/packages/app-desktop/gui/NoteEditor/utils/resourceHandling.ts @@ -160,6 +160,8 @@ export async function processPastedHtml(html: string) { const createdResource = await shim.createResourceFromPath(imageFilePath); mappedResources[imageSrc] = `file://${encodeURI(Resource.fullPath(createdResource))}`; } + } else if (imageSrc.startsWith('data:')) { // Data URIs + mappedResources[imageSrc] = imageSrc; } else { const filePath = `${Setting.value('tempDir')}/${md5(Date.now() + Math.random())}`; await shim.fetchBlob(imageSrc, { path: filePath });