Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@udecode/plate-core@24.0.0
Major Changes
#2629 by @zbeyens –
Plate
toPlateContent
.PlateProvider
toPlate
.PlateContent
is now required inPlate
. This allows you to choose where to render the editor next to other components like toolbar. Example:plugins
fromPlateContent
. These props should be passed toPlate
.editableProps
prop fromPlateContent
. Move these asPlateContent
props.children
prop fromPlateContent
. Render instead these components afterPlateContent
.firstChildren
prop fromPlateContent
. Render instead these components beforePlateContent
.editableRef
prop fromPlateContent
. Useref
instead.withPlateProvider
.usePlateEditorRef
touseEditorRef
.usePlateEditorState
touseEditorState
.usePlateReadOnly
touseEditorReadOnly
. This hook can be used belowPlate
whileuseReadOnly
can only be used in node components.usePlateSelection
touseEditorSelection
.keyDecorate
,keyEditor
andkeySelection
toversionDecorate
,versionEditor
andversionSelection
. These are now numbers incremented on each change.isRendered
toisMounted
.maxLength
prop toPlate
. Specifies the maximum number of characters allowed in the editor. This is a new core plugin (createLengthPlugin
).useEditorVersion
hook. Version incremented on each editor change.useSelectionVersion
hook. Version incremented on each selection change.editor.reset
should now reset the editor without mutating the ref so it does not remountPlateContent
. Default is usingresetEditor
. If you need to replace the editor ref, useuseReplaceEditor
.TEditableProps
,RenderElementFn
,RenderAfterEditable
@udecode/slate-react@24.0.0
Minor Changes
focusEditorEdge
transform. Focus the editor at the start or end of the document.@udecode/slate-utils@24.0.0
Minor Changes
isEditorEmpty
query. Whether the editor is empty. An editor is empty if it has only one empty element.@udecode/plate-alignment@24.0.0
@udecode/plate-autoformat@24.0.0
@udecode/plate-basic-elements@24.0.0
@udecode/plate-basic-marks@24.0.0
@udecode/plate-block-quote@24.0.0
@udecode/plate-break@24.0.0
@udecode/plate-caption@24.0.0
@udecode/plate-cloud@24.0.0
@udecode/plate-code-block@24.0.0
@udecode/plate-combobox@24.0.0
@udecode/plate-comments@24.0.0
@udecode/plate-common@24.0.0
@udecode/plate-cursor@24.0.0
@udecode/plate-dnd@24.0.0
@udecode/plate-emoji@24.0.0
@udecode/plate-excalidraw@24.0.0
@udecode/plate-find-replace@24.0.0
@udecode/plate-floating@24.0.0
@udecode/plate-font@24.0.0
@udecode/plate-heading@24.0.0
@udecode/plate-highlight@24.0.0
@udecode/plate-horizontal-rule@24.0.0
@udecode/plate-indent@24.0.0
@udecode/plate-indent-list@24.0.0
@udecode/plate-juice@24.0.0
@udecode/plate-kbd@24.0.0
@udecode/plate-line-height@24.0.0
@udecode/plate-link@24.0.0
@udecode/plate-list@24.0.0
@udecode/plate-media@24.0.0
@udecode/plate-mention@24.0.0
@udecode/plate-node-id@24.0.0
@udecode/plate-normalizers@24.0.0
@udecode/plate-paragraph@24.0.0
@udecode/plate@24.0.0
@udecode/plate-utils@24.0.0
@udecode/plate-reset-node@24.0.0
@udecode/plate-resizable@24.0.0
@udecode/plate-select@24.0.0
@udecode/plate-selection@24.0.0
@udecode/plate-serializer-csv@24.0.0
@udecode/plate-serializer-docx@24.0.0
@udecode/plate-serializer-html@24.0.0
@udecode/plate-serializer-md@24.0.0
@udecode/plate-suggestion@24.0.0
@udecode/plate-tabbable@24.0.0
@udecode/plate-table@24.0.0
@udecode/plate-trailing-block@24.0.0
@udecode/plate-yjs@24.0.0