From c737a5e95927464434d46756dfb10ac6cae0c945 Mon Sep 17 00:00:00 2001 From: Bartosz Grajdek Date: Wed, 27 Mar 2024 17:40:22 +0100 Subject: [PATCH] fix: add missing file from #247 --- src/web/parserUtils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/web/parserUtils.ts b/src/web/parserUtils.ts index 3f1e3f7d..1daa6621 100644 --- a/src/web/parserUtils.ts +++ b/src/web/parserUtils.ts @@ -214,6 +214,8 @@ function parseText(target: HTMLElement, text: string, curosrPositionIndex: numbe } } + CursorUtils.setPrevText(target); + return {text: target.innerText, cursorPosition: cursorPosition || 0}; }