Minor Changes
195163e6e3d612c1d016112b982e9d49213efb3d
by @zbeyens –Plate
store: addcontainerRef
. This is used by some plugins likeCursorOverlay
.- 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 editoreditor.key
is now usingnanoid()
editor.uid
: new property added byPlate
to uniquely identify the editor. The difference witheditor.key
is thatuid
supports SSR hydration. This can be passed to the editor container asid
prop.render.aboveNodes
andrender.belowNodes
now supportuseElement
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.