Browse Source

fix: 修改safari复制光标错误的问题

beadre_wang 5 years ago
parent
commit
4b6fcffeef
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/ts/util/selection.ts

+ 1 - 0
src/ts/util/selection.ts

@@ -258,5 +258,6 @@ export const insertHTML = (html: string, vditor: IVditor) => {
     } else {
         range.insertNode(pasteElement.content.cloneNode(true));
         range.collapse(false);
+        setSelectionFocus(range);
     }
 };