From ed69a7ad64937aa51f233bb7cfafc360bc9904d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20P=C3=B6mp?= Date: Mon, 9 Dec 2024 19:00:12 +0100 Subject: [PATCH] fix(octra): annotation is not tidied up after typing --- .../core/component/transcr-editor/transcr-editor.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/octra/src/app/core/component/transcr-editor/transcr-editor.component.ts b/apps/octra/src/app/core/component/transcr-editor/transcr-editor.component.ts index fcdb99204..2323e8d7a 100644 --- a/apps/octra/src/app/core/component/transcr-editor/transcr-editor.component.ts +++ b/apps/octra/src/app/core/component/transcr-editor/transcr-editor.component.ts @@ -1152,6 +1152,7 @@ export class TranscrEditorComponent ) : this._rawText; code = insertString(code, this._textSelection.start, startMarker); + code = this.tidyUpRaw(code); } const validation = this.annotationStoreService.validate(code); @@ -1740,7 +1741,7 @@ export class TranscrEditorComponent onAfterInit = () => { this.subscriptionManager.removeByTag('initialization'); this.subscribe( - timer(0), + timer(200), () => { if (this.workplace?.parentNode) { if (!this.popovers.segmentBoundary) {