diff --git a/package.json b/package.json index 3e17b8d1..8f5d371d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bluestone", - "version": "0.12.2", + "version": "0.12.3", "description": "", "main": "./out/main/index.js", "license": "AGPL-3.0", diff --git a/src/renderer/src/editor/plugins/htmlParser.ts b/src/renderer/src/editor/plugins/htmlParser.ts index b9ebf0ca..157dab9d 100644 --- a/src/renderer/src/editor/plugins/htmlParser.ts +++ b/src/renderer/src/editor/plugins/htmlParser.ts @@ -179,6 +179,7 @@ export const htmlParser = (editor: Editor, html: string) => { if (!Range.isCollapsed(sel)) { const back = new BackspaceKey(editor) back.range() + Transforms.select(editor, Range.start(sel)) setTimeout(() => { const node = Editor.node(editor, [0]) if (editor.children.length > 1 && node[0].type === 'paragraph' && !Node.string(node[0])) {