Releases: udecode/plate
Releases · udecode/plate
@platejs/[email protected]
Patch Changes
-
#4799 by @felixfeng33 –
-
Added
disableSelectAlloption to BlockSelectionPlugin. Set totrueto disable the plugin's custom selectAll (Cmd+A) behavior and use the editor's default behavior instead.BlockSelectionPlugin.configure({ options: { disableSelectAll: true }, });
-
@platejs/[email protected]
[email protected]
@platejs/[email protected]
@platejs/[email protected]
@platejs/[email protected]
@platejs/[email protected]
@platejs/[email protected]
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
@platejs/[email protected]
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
@platejs/[email protected]
Patch Changes
-
#4762 by @felixfeng33 – Add
userIdoption to YjsPlugin for combobox collaboration supportYjsPlugin.configure({ options: { userId: user?.id, }, });