@seafile/seafile-editor 1.0.56 → 1.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -82,6 +82,10 @@ function SimpleSlateEditor(_ref) {
82
82
  (0, _react.useEffect)(() => {
83
83
  return () => {
84
84
  editor.selection = null;
85
+ editor.history = {
86
+ redos: [],
87
+ undos: []
88
+ };
85
89
  };
86
90
  // eslint-disable-next-line react-hooks/exhaustive-deps
87
91
  }, []);
@@ -87,6 +87,10 @@ function SlateEditor(_ref) {
87
87
  (0, _react.useEffect)(() => {
88
88
  return () => {
89
89
  editor.selection = null;
90
+ editor.history = {
91
+ redos: [],
92
+ undos: []
93
+ };
90
94
  };
91
95
  // eslint-disable-next-line react-hooks/exhaustive-deps
92
96
  }, []);
@@ -34,6 +34,10 @@ function SlateViewer(_ref) {
34
34
  (0, _react.useEffect)(() => {
35
35
  return () => {
36
36
  editor.selection = null;
37
+ editor.history = {
38
+ redos: [],
39
+ undos: []
40
+ };
37
41
  };
38
42
  // eslint-disable-next-line react-hooks/exhaustive-deps
39
43
  }, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {