From 02615434ec14424275a7b04a34a1afeecb76479b Mon Sep 17 00:00:00 2001 From: Bryce Johnson Date: Sat, 24 Mar 2018 00:38:01 -0400 Subject: [PATCH] Ensure only user changes will be undone or redone. Without this, Quill will treat calling `setContents` on the editor as an undoable/redoable change, even though the user didn't input it. See documention on userOnly configuration: https://quilljs.com/docs/modules/history/#useronly Issue: https://github.com/zenoamaro/react-quill/issues/335 --- src/component.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/component.js b/src/component.js index 62ee93d2..ca27fa13 100644 --- a/src/component.js +++ b/src/component.js @@ -130,7 +130,11 @@ var QuillComponent = createClass({ getDefaultProps: function() { return { theme: 'snow', - modules: {}, + modules: { + history: { + userOnly: true, + }, + }, }; },