Skip to content

Commit

Permalink
⬆️
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Mar 2, 2021
1 parent 17eb42e commit f39c06f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vditor",
"version": "3.8.1",
"version": "3.8.2",
"description": "♏ 易于使用的 Markdown 编辑器,为适配不同的应用场景而生",
"author": "Vanessa <v@b3log.org> (http://vanessa.b3log.org)",
"homepage": "https://b3log.org/vditor",
Expand Down
6 changes: 3 additions & 3 deletions src/js/lute/lute.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/ts/wysiwyg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ class WYSIWYG {
// 点击后光标落于预览区,需展开代码块
let previewElement = hasClosestByClassName(event.target, "vditor-wysiwyg__preview");
if (!previewElement) {
previewElement = hasClosestByClassName(getEditorRange(vditor).startContainer, "vditor-wysiwyg__preview");
previewElement =
hasClosestByClassName(getEditorRange(vditor).startContainer, "vditor-wysiwyg__preview");
}
if (previewElement) {
showCode(previewElement, vditor);
Expand Down

0 comments on commit f39c06f

Please sign in to comment.