Skip to content

Commit be3f48d

Browse files
committed
feat: add docs comment
1 parent 584465d commit be3f48d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/extension-collaboration/src/collaboration.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ export const Collaboration = Extension.create<CollaborationOptions, Collaboratio
251251

252252
return [
253253
ySyncPluginInstance,
254+
// The mapPositionsPlugin must come after the ySyncPlugin, because it uses
255+
// the metadata from the ySyncPlugin to map the positions.
254256
mapPositionsPlugin(),
255257
yUndoPluginInstance,
256258
// Only add the filterInvalidContent plugin if content checking is enabled

0 commit comments

Comments
 (0)