Skip to content

Commit

Permalink
fix slab#1259
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Feb 26, 2017
1 parent f952e18 commit e813d06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion themes/snow.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ class SnowTooltip extends BaseTooltip {
});
this.root.querySelector('a.ql-remove').addEventListener('click', (event) => {
if (this.linkRange != null) {
let range = this.linkRange;
this.restoreFocus();
this.quill.formatText(this.linkRange, 'link', false, Emitter.sources.USER);
this.quill.formatText(range, 'link', false, Emitter.sources.USER);
delete this.linkRange;
}
event.preventDefault();
Expand Down

0 comments on commit e813d06

Please sign in to comment.