diff --git a/src/lib/components/common/RichTextInput.svelte b/src/lib/components/common/RichTextInput.svelte index be9469cdff..572d5636e0 100644 --- a/src/lib/components/common/RichTextInput.svelte +++ b/src/lib/components/common/RichTextInput.svelte @@ -158,16 +158,6 @@ this.setupEventListeners(); } - onConnect() { - this.isConnected = true; - this.joinDocument(); - } - - onDisconnect() { - this.isConnected = false; - this.synced = false; - } - setupEventListeners() { // Listen for document updates from server this.socket.on('yjs:document:update', (data) => { @@ -299,6 +289,16 @@ } } + onConnect() { + this.isConnected = true; + this.joinDocument(); + } + + onDisconnect() { + this.isConnected = false; + this.synced = false; + } + destroy() { this.socket.off('yjs:document:update'); this.socket.off('yjs:document:state'); diff --git a/src/lib/components/notes/NoteEditor.svelte b/src/lib/components/notes/NoteEditor.svelte index 0393a2365d..9f343f5639 100644 --- a/src/lib/components/notes/NoteEditor.svelte +++ b/src/lib/components/notes/NoteEditor.svelte @@ -927,7 +927,7 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings,