Skip to content

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

mobile: fix incorrect tab content by default

Ammar Ahmedcf5fac7d4126
diff --git a/packages/editor-mobile/src/components/editor.tsx b/packages/editor-mobile/src/components/editor.tsx
index a2a1f5f4c..1a961377a 100644
--- a/packages/editor-mobile/src/components/editor.tsx
+++ b/packages/editor-mobile/src/components/editor.tsx
@@ -134,7 +134,7 @@ const Tiptap = ({
editorProps: {
editable: () => !tab.readonly
},
- content: "<p>hello world<ins class='diffins'>[diffed text]</ins></p>",
+ content: globalThis.editorControllers[tab.id]?.content?.current,
isMobile: true,
doubleSpacedLines: settings.doubleSpacedLines,
openLink: (url) => {