diff --git a/packages/text-editor/src/components/CollaboratorEditor.svelte b/packages/text-editor/src/components/CollaboratorEditor.svelte
index 659aea558b..cfd55b08da 100644
--- a/packages/text-editor/src/components/CollaboratorEditor.svelte
+++ b/packages/text-editor/src/components/CollaboratorEditor.svelte
@@ -33,7 +33,7 @@
import Placeholder from '@tiptap/extension-placeholder'
import { getCurrentAccount, Markup } from '@hcengineering/core'
import { IntlString, translate } from '@hcengineering/platform'
- import { getPlatformColorForText, IconObjects, IconSize, registerFocus, themeStore } from '@hcengineering/ui'
+ import { getPlatformColorForText, IconObjects, IconSize, Loading, registerFocus, themeStore } from '@hcengineering/ui'
import { Completion } from '../Completion'
import textEditorPlugin from '../plugin'
@@ -95,9 +95,11 @@
}
})
+ let loading = true
+
if (contextProvider === undefined) {
- provider?.on('status', (event: any) => {
- console.log(documentId, event.status) // logs "connected" or "disconnected"
+ provider?.on('synced', () => {
+ loading = false
})
}
@@ -389,6 +391,12 @@