Skip to content

Commit

Permalink
added blur() convenience method for blurring editor (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinrekhi authored and jhchen committed Jun 7, 2016
1 parent a9f38c1 commit 1e33ef5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/quill.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ class Quill {
this.editor.applyDelta(delta);
}

blur() {
this.setSelection(null);
}

setSelection(index, length, source) {
if (index == null) {
this.selection.setRange(null, length || Quill.sources.API);
Expand Down

0 comments on commit 1e33ef5

Please sign in to comment.