Skip to content

Commit

Permalink
🐛 fix #495
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jun 17, 2020
1 parent 45176a9 commit c1b5d58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@

### v3.3.1 / 2020-06-xx

* [495](https://github.com/Vanessa219/vditor/issues/495) 行级 HTML 退格问题 `修复缺陷`
* [494](https://github.com/Vanessa219/vditor/issues/494) 三种模式支持 list-style 样式 `改进功能`
* [489](https://github.com/Vanessa219/vditor/issues/489) 为 vditor.b3log.org/demo 添加源码 `改进功能`
* [493](https://github.com/Vanessa219/vditor/issues/493) 修复 XSS 过滤 `修复缺陷`
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 @@ -288,7 +288,7 @@ export const processKeydown = (vditor: IVditor, event: KeyboardEvent) => {
}

// 修正光标位于 inline math/html 前,按下删除按钮 code 中内容会被删除, 不能返回,还需要进行后续处理
blockElement.querySelectorAll("span.vditor-wysiwyg__block").forEach((item) => {
blockElement.querySelectorAll("span.vditor-wysiwyg__block[data-type='math-inline']").forEach((item) => {
(item.firstElementChild as HTMLElement).style.display = "inline";
(item.lastElementChild as HTMLElement).style.display = "none";
});
Expand Down

0 comments on commit c1b5d58

Please sign in to comment.