From 00d0ba43d26f27b6d5776b6bbe8c8b7f1518968c Mon Sep 17 00:00:00 2001 From: Sachin Rekhi Date: Fri, 3 Jun 2016 12:02:53 -0700 Subject: [PATCH] added blur() convenience method for blurring editor --- core/quill.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/quill.js b/core/quill.js index 1958d270a2..e802dc7dd7 100644 --- a/core/quill.js +++ b/core/quill.js @@ -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);