fix: show collaborator connection errors (#9259)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2025-06-16 20:35:29 +07:00
committed by GitHub
parent 2babee059d
commit 995d5750fe
13 changed files with 48 additions and 41 deletions
@@ -152,8 +152,6 @@
let editor: Editor
let element: HTMLElement
let textToolbarElement: HTMLElement
let imageToolbarElement: HTMLElement
let editorPopupContainer: HTMLElement
let placeHolderStr: string = ''
@@ -242,10 +240,6 @@
needFocus = false
}
function handleFocus (): void {
needFocus = true
}
$: if (editor !== undefined) {
// When the content is invalid, we don't want to emit an update
// Preventing synchronization of the invalid content
@@ -253,9 +247,6 @@
editor.setEditable(editable, emitUpdate)
}
// TODO: should be inside the editor
$: showToolbar = canShowPopups
const optionalExtensions: AnyExtension[] = []
if (attachFile !== undefined) {