Skip to content

Commit

Permalink
Fix issue with unnecessary editor focus on mount (zenoamaro#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
jetzhou authored and alexkrolick committed Feb 26, 2018
1 parent 3c15731 commit af34e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var QuillMixin = {
var sel = editor.getSelection();

if (typeof value === 'string') {
editor.clipboard.dangerouslyPasteHTML(value);
editor.setContents(editor.clipboard.convert(value));
} else {
editor.setContents(value);
}
Expand Down

0 comments on commit af34e52

Please sign in to comment.