You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
When setting the content of the editor as it is being created, the undo history should not include the initial setting of the editor text. It should instead work like the regular History extension that does not allow a user to undo past the initial content set when creating the editor.
Screenshot, video, or GIF
Screen.Recording.2021-08-24.at.9.16.06.AM.mov
Environment?
operating system: Mac OS
browser: Safari/Chrome
mobile/desktop: Desktop
tiptap version: 2.0.0
Additional context
This issue can cause a complete loss of text that neither user can redo to add it back (as shown in the video). For example if
User 2: Starts typing
User 1: Click undo (this will undo the initial document content)
User 2: Keeps trying
Result: The entire document is deleted and the history will not allow you to redo the deleted text due to User 2's new addition of text.
The text was updated successfully, but these errors were encountered:
Thanks for the reply @BrianHung. That solution seems to be right in line with this solution discussed on the yjs demo GitHub repo. Unfortunately I'm limited by this solution and wouldn't be able to use it because, at least from my understanding and testing, I wouldn't be able to save/load the content as HTML which is a requirement for me.
Description
When using the Collaboration extension, the history allows the user to undo the entire documents text.
Steps to reproduce the bug
Steps to reproduce the behavior:
CodeSandbox
An existing CodeSandbox from hanspagel: https://codesandbox.io/s/sbdbm
Expected behavior
When setting the content of the editor as it is being created, the undo history should not include the initial setting of the editor text. It should instead work like the regular History extension that does not allow a user to undo past the initial content set when creating the editor.
Screenshot, video, or GIF
Screen.Recording.2021-08-24.at.9.16.06.AM.mov
Environment?
Additional context
This issue can cause a complete loss of text that neither user can redo to add it back (as shown in the video). For example if
User 2: Starts typing
User 1: Click undo (this will undo the initial document content)
User 2: Keeps trying
Result: The entire document is deleted and the history will not allow you to redo the deleted text due to User 2's new addition of text.
The text was updated successfully, but these errors were encountered: