Skip to content

Commit

Permalink
fix slab#1038
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen authored and Tim McClure committed Dec 12, 2016
1 parent 8385e18 commit fccd60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fccd60f

Please sign in to comment.