feat: add blocknote-collab example and sharedb module#6
Merged
Conversation
- examples/blocknote-collab: BlockNote + jsonot OT 协同编辑示例 - 服务端快照+OT策略,支持多客户端并发编辑 - 修复初始文档 content 格式为 BlockNote InlineContent[] - 修复 ack 触发不必要的 replaceBlocks 导致光标错乱 - 修复 ignoreLocalChangeRef 重置时机,使用 setTimeout(0) - 修复 @mantine/core CSS 缺失导致 slash menu 样式错乱 - sharedb: ShareDB 兼容后端实现(内存/Redis 存储)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
examples/blocknote-collabBlockNote + jsonot OT 协同编辑示例,展示"快照 + OT"协同策略:
修复:
content格式为 BlockNote 要求的InlineContent[](原为字符串)replaceBlocks导致光标跳动/文字错乱ignoreLocalChangeRef重置时机,改用setTimeout(0)确保在 BlockNote 异步 onChange 之后重置,避免 slash menu 被打断@mantine/coreCSS,修复 slash menu 等浮动组件样式错乱sharedb/ShareDB 兼容后端实现,提供: