Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: placeholders not added before image load

thecodrrb3fe56cc4775
diff --git a/apps/web/src/stores/editor-store.js b/apps/web/src/stores/editor-store.js
index 251921180..c9fd03f1f 100644
--- a/apps/web/src/stores/editor-store.js
+++ b/apps/web/src/stores/editor-store.js
@@ -143,7 +143,10 @@ class EditorStore extends BaseStore {
if (note.conflicted)
return hashNavigate(`/notes/${noteId}/conflict`, { replace: true });
- let content = await db.content.raw(note.contentId, false);
+ let content = await db.content.insertPlaceholders(
+ await db.content.raw(note.contentId),
+ "/placeholder.svg"
+ );
this.set((state) => {
const defaultSession = getDefaultSession(note.dateEdited);