-
-
Notifications
You must be signed in to change notification settings - Fork 760
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
'@udecode/plate-core': minor | ||
--- | ||
|
||
- `Plate` store: add `containerRef`. This is used by some plugins like `CursorOverlay`. | ||
- Add `useEditorContainerRef` selector hook. You can pass the returned ref to your editor scroll container. | ||
- `usePlateEditor` options: `value` can now be a callback function to get the value from the editor | ||
- `editor.key` is now using `nanoid()` | ||
- `editor.uid`: new property added by `Plate` to uniquely identify the editor. The difference with `editor.key` is that `uid` supports SSR hydration. This can be passed to the editor container as `id` prop. | ||
- `render.aboveNodes` and `render.belowNodes` now support `useElement` | ||
- `PlatePlugin.inject` new properties: | ||
- `excludePlugins?: string[]` | ||
- `excludeBelowPlugins?: string[]` | ||
- `maxLevel?: number` | ||
- `isLeaf?: boolean` | ||
- `isBlock?: boolean` | ||
- `isElement?: boolean` | ||
- Add `getInjectMatch(editor, plugin)` to get a plugin inject match function. |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
'@udecode/plate-utils': patch | ||
'@udecode/plate-utils': minor | ||
--- | ||
|
||
- `PlateElement` add `data-block-id` if `element.id` is defined, after editor mount to support SSR hydration. |