Skip to content

Commit

Permalink
🐛 fix Vanessa219#193
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 authored and stevapple committed Apr 8, 2020
1 parent 967e770 commit 481a684
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 6 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,20 @@
* [55](https://github.com/Vanessa219/vditor/issues/55) 链接引用不转换为内联链接 `改进功能`
* [81](https://github.com/Vanessa219/vditor/issues/81) 链接和图片嵌套问题 `修复缺陷`

### v2.2.12 / 未发布
### v2.2.13 / 未发布


### v2.2.12 / 2020-02-29

* [195](https://github.com/Vanessa219/vditor/pull/195) added korean i18n `引入特性`
* [194](https://github.com/Vanessa219/vditor/pull/194) Lists (Firefox Compatibility) `修复缺陷`
* [193](https://github.com/Vanessa219/vditor/pull/193) Links (Firefox Compatibility) `修复缺陷`
* [192](https://github.com/Vanessa219/vditor/pull/192) Heading (Firefox Compatibility) `修复缺陷`
* [191](https://github.com/Vanessa219/vditor/pull/191) backspace problem(Firefox Compatibility) `修复缺陷`
* [188](https://github.com/Vanessa219/vditor/issues/188) korean character composition at mac chrome `改进功能`
* [187](https://github.com/Vanessa219/vditor/issues/187) ctrl+b, ctrl+i `修复缺陷`
* [185](https://github.com/Vanessa219/vditor/issues/185) Safari 兼容性修复 `改进功能`
* [137](https://github.com/Vanessa219/vditor/issues/137) [suggestion] ctrl+g behavior `改进功能`

### v2.2.11 / 2020-02-27

* [182](https://github.com/Vanessa219/vditor/issues/182) 支持 Setext 标题 `改进功能`
* [181](https://github.com/Vanessa219/vditor/issues/181) GFM Example52,54 - Setext 支持 `改进功能`
* [180](https://github.com/Vanessa219/vditor/issues/180) GFM Example 31 `修复缺陷`
Expand Down
6 changes: 4 additions & 2 deletions src/ts/wysiwyg/highlightToolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,10 @@ export const genAPopover = (vditor: IVditor, aElement: HTMLElement) => {
}
if (event.altKey && event.key === "Enter") {
const range = vditor.wysiwyg.element.ownerDocument.createRange();
range.selectNodeContents(aElement.lastChild);
range.collapse(false);
// firefox 不会打断 link https://github.com/Vanessa219/vditor/issues/193
aElement.insertAdjacentHTML("afterend", Constants.ZWSP);
range.setStartAfter(aElement.nextSibling)
range.collapse(true);
setSelectionFocus(range);
event.preventDefault();
}
Expand Down

0 comments on commit 481a684

Please sign in to comment.