Skip to content

Commit

Permalink
🐛 fix #158
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Feb 20, 2020
1 parent 1f955f8 commit 3807aab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@
* [81](https://github.com/Vanessa219/vditor/issues/81) 链接和图片嵌套问题 `修复缺陷`


### v2.2.2 / 2020-02-19
### v2.2.3 / 2020-02-20

* [158](https://github.com/Vanessa219/vditor/issues/158) tab key is not working when no text `修复缺陷`
* [156](https://github.com/Vanessa219/vditor/issues/156) li 缩进后没有渲染代码块 `修复缺陷`
* [155](https://github.com/Vanessa219/vditor/issues/155) blockquote 插入光标错误 `修复缺陷`
* [154](https://github.com/Vanessa219/vditor/issues/154) the cursor is disapeared after tab pressed at editor mode `修复缺陷`
Expand Down
2 changes: 1 addition & 1 deletion src/ts/wysiwyg/processKeydown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ export const processKeydown = (vditor: IVditor, event: KeyboardEvent) => {
} else {
// 当前任务列表有文字,光标后的文字需添加到新任务列表中
range.setEndAfter(taskItemElement.lastChild);
taskItemElement.insertAdjacentHTML("afterend", `<li class="vditor-task"><input type="checkbox"> <wbr></li>`);
taskItemElement.insertAdjacentHTML("afterend", `<li class="vditor-task" data-marker="*"><input type="checkbox"> <wbr></li>`);
document.querySelector("wbr").after(range.extractContents());
}
setRangeByWbr(vditor.wysiwyg.element, range);
Expand Down

0 comments on commit 3807aab

Please sign in to comment.