From fccd60fc7c27d2039d73d6b375af3d35bea99a46 Mon Sep 17 00:00:00 2001 From: Jason Chen Date: Wed, 12 Oct 2016 01:03:23 -0700 Subject: [PATCH] fix #1038 --- modules/clipboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/clipboard.js b/modules/clipboard.js index 46f8806b1d..479e874ba7 100644 --- a/modules/clipboard.js +++ b/modules/clipboard.js @@ -130,7 +130,7 @@ class Clipboard extends Module { } onPaste(e) { - if (e.defaultPrevented) return; + if (e.defaultPrevented || !this.quill.isEnabled()) return; let range = this.quill.getSelection(); let delta = new Delta().retain(range.index).delete(range.length); let bodyTop = document.body.scrollTop;