Browse Source

:bug: fix https://github.com/Vanessa219/vditor/issues/1566

Vanessa 1 năm trước cách đây
mục cha
commit
bb63ba70d8
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 0
      CHANGELOG.md
  2. 1 1
      src/index.ts

+ 1 - 0
CHANGELOG.md

@@ -15,6 +15,7 @@
 
 ### v3.10.1 / 2024-01
 
+* [`insertValue` 后无法回车](https://github.com/Vanessa219/vditor/issues/1566) `修复缺陷`
 * [IR 模式滚动时隐藏代码块语言提示](https://github.com/Vanessa219/vditor/issues/1567) `改进功能`
 * [https://github.com/Vanessa219/vditor/issues/1565](https://github.com/Vanessa219/vditor/pull/1563) `开发重构`
 * [⬆️ Bump ip from 1.1.5 to 1.1.9](https://github.com/Vanessa219/vditor/pull/1563) `开发重构`

+ 1 - 1
src/index.ts

@@ -266,7 +266,7 @@ class Vditor extends VditorMethod {
                 inputEvent(this.vditor);
             }
         } else if (this.vditor.currentMode === "wysiwyg") {
-            this.vditor.wysiwyg.preventInput = true;
+            // 由于 https://github.com/Vanessa219/vditor/issues/1566 不能使用 this.vditor.wysiwyg.preventInput = true;
             if (render) {
                 input(this.vditor, getSelection().getRangeAt(0));
             }