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}`])); })