Skip to content

Commit

Permalink
Ensure only user changes will be undone or redone.
Browse files Browse the repository at this point in the history
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: zenoamaro#335
  • Loading branch information
brycepj authored and Bryce Johnson committed Mar 24, 2018
1 parent 4509e0c commit 0261543
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ var QuillComponent = createClass({
getDefaultProps: function() {
return {
theme: 'snow',
modules: {},
modules: {
history: {
userOnly: true,
},
},
};
},

Expand Down

0 comments on commit 0261543

Please sign in to comment.