Skip to content

Commit

Permalink
Chrome patch - under chrome hint delete \n
Browse files Browse the repository at this point in the history
  • Loading branch information
jokamax committed Jan 21, 2019
1 parent 4f2fbe1 commit 8af6514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/base/module/HintPopover.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default class HintPopover {
}
if (document.queryCommandSupported('insertText')) {
this.context.triggerEvent('before.command', this.$editable.html());
this.lastWordRange.deleteContents().collapse().select();
this.lastWordRange.select();
this.context.invoke('editor.focus');
document.execCommand('insertText', false, node.textContent);
// -- Normalize
Expand Down

0 comments on commit 8af6514

Please sign in to comment.