Skip to content

Commit

Permalink
fix: 撤销
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Feb 3, 2024
1 parent 88063ba commit f761c35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/QuillEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ const QEditor = () => {
editor.current = new Quill("#editor", {
modules: {
toolbar: toolbarOptions,
history: {
delay: 2000,
maxStack: 500, // 调整撤销和重做堆栈的大小
userOnly: false,
},
},
theme: "snow",
});
Expand Down

0 comments on commit f761c35

Please sign in to comment.