[x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
[x] I have read the documentation and cannot find an answer.
Describe the bug
If two or more instances of the editor are used and content has been created in them, when undo/redo is called in one editor, undo/redo is also performed in the other editors when all changes have been completed in the current editor.
Additional context
I went back to version 2.0 and the error still occurred. Only when I switched to version 1.* did undo/redo only apply to the content of the editor to which it belongs.
If you want to ask for support or request features, sponsor the project and contact me over email.
Describe the bug If two or more instances of the editor are used and content has been created in them, when undo/redo is called in one editor, undo/redo is also performed in the other editors when all changes have been completed in the current editor.
Reproduction https://codesandbox.io/p/sandbox/mdx-editor-base-forked-r7vynx
To Reproduce Steps to reproduce the behavior:
Expected behavior Undo/redo only applies to the content of the editor, where it was called.
Video
https://github.com/user-attachments/assets/c775203b-466c-4d3f-a760-63a4e5b09adf
Desktop
Additional context I went back to version 2.0 and the error still occurred. Only when I switched to version 1.* did undo/redo only apply to the content of the editor to which it belongs.