Skip to content

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

feat: remove placeholder insertion

thecodrrb2c730200507
diff --git a/apps/web/src/components/diff-viewer/index.js b/apps/web/src/components/diff-viewer/index.js
index e7fa5479e..e5812289c 100644
--- a/apps/web/src/components/diff-viewer/index.js
+++ b/apps/web/src/components/diff-viewer/index.js
@@ -109,10 +109,7 @@ function DiffViewer(props) {
notesStore.setSelectedNote(noteId);
note = note.data;
- const content = await db.content.insertPlaceholders(
- await db.content.raw(note.contentId),
- "/placeholder.svg"
- );
+ const content = await db.content.raw(note.contentId);
if (!content.conflicted)
return resolveConflict({
toKeep: content.data,
diff --git a/apps/web/src/stores/editor-store.js b/apps/web/src/stores/editor-store.js
index 3a154b29a..97e4a7841 100644
--- a/apps/web/src/stores/editor-store.js
+++ b/apps/web/src/stores/editor-store.js
@@ -249,10 +249,7 @@ class EditorStore extends BaseStore {
const session = this.get().session;
switch (session.sessionType) {
case "default":
- return await db.content.insertPlaceholders(
- await db.content.raw(session.contentId),
- "/placeholder.svg"
- );
+ return await db.content.raw(session.contentId);
case "preview":
return session.content;
case "locked":