Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Each user can undo/redo only their own input #8312

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

jam411
Copy link
Contributor

@jam411 jam411 commented Dec 11, 2023

task: https://redmine.weseek.co.jp/issues/134397

やったこと

react-codemirror の history(undo/redo機能) が悪さしていたので無効化して, history 機能を Y.UndoManager に任せるようにしました。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keymap.of(yUndoManagerKeymap) の追加は yjs 関連のコードとして use-collaborative-editor-mode 内に収めることも考えましたが、react-codemirror の設定値をここで history: false するので default extensions としてここで追加するようにしました。

@yuki-takei yuki-takei merged commit 89eeada into feat/yjs-editor Dec 11, 2023
5 checks passed
@yuki-takei yuki-takei deleted the feat/134397-update-undo-feature branch December 11, 2023 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants