Skip to content

Commit

Permalink
🐛 fix #623
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jul 28, 2020
1 parent 8eb857d commit de14da9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.12 / 2020-07-xx

* [623](/~https://github.com/Vanessa219/vditor/pull/623) 修复即时渲染模式下复制光标位置错误和添加位置错误的问题 `修复缺陷`
* [608](/~https://github.com/Vanessa219/vditor/issues/608) 更新使用截图和演示动画 `文档相关`
* [587](/~https://github.com/Vanessa219/vditor/issues/587) IR & SV 保留 Setext 风格标题 `改进功能`
* [626](/~https://github.com/Vanessa219/vditor/issues/626) 去除 Setext 标题解析开关 `开发重构`
Expand Down
3 changes: 1 addition & 2 deletions src/ts/util/fixBrowserBehavior.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1347,8 +1347,7 @@ export const paste = (vditor: IVditor, event: ClipboardEvent & { target: HTMLEle
if (vditor.currentMode === "wysiwyg") {
blockElement.outerHTML = vditor.lute.SpinVditorDOM(blockElement.outerHTML);
} else {
const range = window.getSelection().getRangeAt(0);
IRInput(vditor, range);
blockElement.outerHTML = vditor.lute.SpinVditorIRDOM(blockElement.outerHTML);
}
setRangeByWbr(vditor[vditor.currentMode].element, range);
vditor[vditor.currentMode].element.querySelectorAll(`.vditor-${vditor.currentMode}__preview[data-render='2']`)
Expand Down

0 comments on commit de14da9

Please sign in to comment.