From b7065205a11b864c63a4332404f395279e42c074 Mon Sep 17 00:00:00 2001 From: ZhurmilovVadim Date: Wed, 8 May 2024 00:24:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=87=D0=B8=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D0=BE=20=D0=BC=D0=B5=D0=BB=D0=BE=D1=87=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/src/components/Editor/Plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/components/Editor/Plugin.ts b/public/src/components/Editor/Plugin.ts index a5317ef4..d9e35214 100644 --- a/public/src/components/Editor/Plugin.ts +++ b/public/src/components/Editor/Plugin.ts @@ -841,14 +841,14 @@ export const fromJson = (props: PluginProps) => { if (props[`cursor${AppUserStore.state.username}`] === '0') { setTimeout(() => { setCursorAtNodePosition(node, 0); - (node as HTMLElement).focus(); + (node as HTMLElement).click(); // document.getSelection().setPosition(node, 0); }) } else { setTimeout(() => { setCursorAtNodePosition(node, Number(props[`cursor${AppUserStore.state.username}`])); - (node as HTMLElement).focus(); + (node as HTMLElement).click(); // document.getSelection().setPosition(node.firstChild, Number(props[`cursor${AppUserStore.state.username}`])); })