Undo/Redo functionality not working consistently with collaboration #4978
Unanswered
GSKarthik369
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Undo/Redo are not working consistently when we are using the collaborative editor feature in Tiptap Reactjs
It doesn't work either with Ctrl+Z or Ctrl+Y(Ctrl + Shift + Z)
OR
even when we call undo functions or redo functions
OR even using the functions below
Undo
editor.chain().focus().undo().run();
Redo
editor.chain().focus().redo().run();
On the first load of Tiptap reactjs editor it shows a transcation change like below with all the nodes in the steps object
This steps of all the nodes also comes when we randomly do undo and redo even while using Ctrl + Z or even the undo functions call.
At first when the editor instance was created we were doing some mistakes like calling the Collaboration and default History extensions together
Like below
The above issue was resolved by removing the default History extension plugin from the editor instance after refering this Documentation
We also have trackchanges extension implemented in our Tiptap reactjs editor from this Trackchanges Extension
In the above trackchanges extension reusage we also have similar functions like onTransaction. If that is causing the issue of giving this all nodes in the steps while doing each transaction
Any help would be very grateful?
@bdbch @janthurau
Beta Was this translation helpful? Give feedback.
All reactions