Liyuan Li 5 years ago
parent
commit
0d0b987a7e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ts/wysiwyg/processKeydown.ts

+ 1 - 1
src/ts/wysiwyg/processKeydown.ts

@@ -36,7 +36,7 @@ export const processKeydown = (vditor: IVditor, event: KeyboardEvent) => {
         vditor.wysiwygUndo.recordFirstWbr(vditor, event);
     }
 
-    const range = getEditorRange(vditor.ir.element);
+    const range = getEditorRange(vditor.wysiwyg.element);
     const startContainer = range.startContainer;
 
     fixHR(range);