Patch Changes
-
#4792 by @felixfeng33 – Add
userIdoption to editor for collaborative features- Add
userIdoption tousePlateEditor/createSlateEditoroptions - Add
editor.meta.userIdfor accessing the current user ID - Breaking: Remove
getUserIdoption fromTriggerComboboxPluginOptions. Useeditor.meta.userIdinstead.
Migration:
// Before MentionPlugin.configure({ options: { getUserId: (editor) => "123", }, }); // After const editor = usePlateEditor({ plugins: [MentionPlugin], userId: "123", });
- Add