v54.0.0-beta.5 (2026-11-24)
Published @platejs/cli@54.0.0-beta.5.
8bee987by @zbeyens –- Fix
clipboard.pasteTextandclipboard.pasteHtmlin@platejs/test/playwrightto pass a paste that a later commit follows, such as a paste rule's, and to fail a paste that landed in another editor root. Use@platejs/testwith theplatejsrelease of the same version.
- Fix
-
- Move a comment thread with its text when a drag moves all of that text, and back again on undo. A drag of part of the text leaves the thread on the part that stays. Undoing a drag and the thread's creation, then redoing both, puts the thread back on its text.
-
- Add
fillsField(field, value)toplatejs/fieldto check whether a value fills a field.required, thefilledandblankconditions and the refusal of an answer on a skipped field all use it. A checkbox fills only when ticked. A text or signature answer needs a character other than whitespace. Any other field needs a value of its kind.
- Add
-
- Fix the ink layer holding the outline of each removed pen mark in memory while undo history can still restore that mark
-
- Fix Markdown copied from VS Code pasting as a Markdown code block; it now pastes as headings, lists and marks
- Paste code copied from VS Code as a code block at the caret, replacing an empty block, instead of after the current block
- Paste text copied from a plain-text file in VS Code as plain text instead of a code block
dee395dby @zbeyens –- Keep a range anchor made with
deletion: 'nearest'on its text when a drag moves all of that text within one root, instead of leaving it collapsed where the text was. Undo and redo move it back and forth. A drag of part of the range leaves the anchor on the part that stays, unless the drop rebuilds the block that holds that part. A Suggesting move keeps the anchor on the struck original until the move is decided. A copy, a drag into another editor or root and an editor bound to Yjs orplitejs/syncmap the range as before.
- Keep a range anchor made with
Full changelog: v54.0.0-beta.4...v54.0.0-beta.5
v54.0.0-beta.4 (2026-11-24)
Published @platejs/cli@54.0.0-beta.4.
Published @platejs/test@54.0.0-beta.4.
-
- Fix
BlockPlaceholderPlugindrawing its placeholder on top of the editorplaceholderwhen the editor holds only an empty list item. Only the editor placeholder shows there now, and an editor without aplaceholderstill shows the block placeholder on that item.
- Fix
-
- Add
exportPicture({ format, kit })touseBoardActions()inplatejs/board/react. It draws the board, or the selected shapes and frames, as a PNG or an SVG with the static plugins inkit, which may be a promise such as a dynamic import. It resolvesnullwhen there is nothing to draw, and rejects when the board is not on the page. - Add the
BoardPicture,BoardPictureOptionsandBoardPictureWarningtypes. A picture's warnings name each image it could not read and each shape it could not draw, and say when a font could not be embedded or a large PNG was scaled down.
- Add
-
- Fix a comment thread whose text was deleted still reading as attached over nothing. Its range now reads
status: 'unavailable'until its text comes back, such as through undo, andidsAtno longer answers it at the spot where its text was. - Refuse to create, send or publish a thread over a range that covers no letter and no embedded item, as for a draft whose selected text was deleted before it was sent. Starting a draft over such a range between two blocks takes the first block.
- Load a saved thread whose range covers nothing as unavailable.
- Notify attachment listeners when a thread's text is deleted or comes back, even when its range keeps the same points, and answer
pendingRange()withnullonce the pending draft's text is deleted.
- Fix a comment thread whose text was deleted still reading as attached over nothing. Its range now reads
-
a752fdaby @zbeyens – Report alossy-contentdiagnostic with the table's path when a review DOCX export includes a table that holds a pending row, column or table format change, also when the export returns the retained source file unchanged. Word's revisions cannot carry that change, so the defaultlossPolicy: 'reject'refuses the export. PasslossPolicy: 'allow'to export the file with the warning. -
7428002by @zbeyens – FixEditorRoot'sreadOnlyletting a write through anEditorContentin the render that sets it. A write from a removed control's cleanup in that render now throws, also when the render removes, hides or suspends theEditorContent. AnEditorContentwithreadOnly={false}stays writable. -
- Accept
at: { id }in node reads and transforms, including those that select by plugin, such aseditor.read.nodes.block({ at: { id }, type: BaseParagraphPlugin }), and in theinsertof date, mention, inline equation, field and footnote. - Remove
ElementIdPlugin'sread.entry(id)and theElementIdEntrytype.
Migration: Use
editor.read.nodes.byId(id). It returns{ key, node, path, root? }, ornullinstead ofundefinedwhen no element holds the id. - Accept
-
- Add
read.submission(role)to the field plugin. It returns aFieldSubmission,{ role, values }, with thevalueof each of that role's fields keyed byfieldId. A field with novalueis left out. - Add
applyFieldValues(template, submissions, options?)toplatejs/field. It checks each role's submission against an empty template, in the order the roles submitted, and returns aFieldApplyResult: the filled document, the roles that still have to submit aspending, or the refusals asFieldRefusalobjects. A required checkbox counts as answered only when it is ticked. Pass a renamed field type asoptions.type.
- Add
-
- Fix Markdown export writing document text that a CommonMark or GFM reader runs as HTML or reads as a script link, such as a tag in a details summary, in an equation's TeX or at the start of a footnote. Plate reads the exported file back as the same document.
- Fix copying part of a code block writing its raw text into
text/markdown. The copied code is now escaped Markdown text.
-
- Add
RawHtmlPlugintoplatejs/markdown. Installed besideMarkdownPlugin, it keeps a Markdown file's raw HTML, such as a README's centered header, and HTML comments on lines of their own. Export writes that HTML back when it passes a check of tags, attributes and URLs, and otherwise writes it escaped with amarkdown-unsafe-contentwarning. - Keep raw HTML as plain text when
MarkdownPlugin'splainMarks, or aserializecall's, namesrawHtml. - Drop a 53.x document's saved
rawHtmlinmigrateV54where no plugin declares it, asmigrateV54dropsai. - Refuse a 53.x document in
migrateV54when a pending suggestion changesaiand no plugin declaresai, instead of opening a suggestion that loses the mark when accepted.
- Add
-
- Add follow-up paste rules. A
defineInputRulerule withtarget: 'insertData',resolveandfollowUprunsfollowUpafter a local paste that history saved, as its own undo step on the view that pasted. - Add
keyto an input rule'seditor, which returns a node's stable key, aseditor.keydoes. - Add
MediaEmbedRules.autoEmbed({ variant: 'paste' })toplatejs/media. A YouTube, Vimeo, Dailymotion, Youku, Coub or X link pasted alone on an empty paragraph becomes a media embed above that paragraph, and one undo gives the link back.
- Add follow-up paste rules. A
-
- Run a
useEditorSelectorselector again when its editor shows a different review preview, so hooks built on it, such asuseFieldRead, show what the preview shows. - Fix
renderStaticHtmlwith adocumentoption throwing while the editor shows a review preview.
- Run a
-
efacbf4by @zbeyens – Give each column its own width while a suggested column insertion or deletion waits.api.table.columnWidthsandread.table.cellshow a struck column at its old width and an inserted one at its new width. Column edges do not resize until the suggestion is decided, andapi.table.createResizethrows aRangeErrorfor one; row edges still resize.
-
c5f9275by @felixfeng33 – Fix accepting a line typed right after another author's pending join, which returnedblockeduntil that join was decided. The accept now applies. The line stays where it is stored, and accepting the join later still places it after the joined line, as deciding both at once does. -
7428002by @zbeyens – FixEditorRoot'sreadOnlyletting a write through in the render that sets it, such as from a removed control's cleanup or a custom element'sconnectedCallback. That write now throws through anEditable,PagedEditableorVirtualizedEditable, also when the render mounts, removes, hides or suspends it. AnEditorReadOnlyProviderthat sets noreadOnlyno longer makes those editables writable. -
708a247by @felixfeng33 – Fix accepting a join, or rejecting a split, that merges a line another author inserted or struck, which returnedblockeduntil that author's change was decided. The merge now applies, and the other author's change stays pending on its text. Accepting the deletion of a line while another author's join onto it is pending keeps the line empty until the join is decided, as Google Docs does. Decisions of different authors can still give different results in different orders. -
a8d490eby @zbeyens – Addnodes.byId(id)to reads and transactions, and accept{ id }as a node targeteditor.read.nodes.byId(id), ortx.nodes.byId(id)inside an update, returns the element that holds the storedidas{ key, node, path, root? }, ornullwhen no element holds it.- Node reads and node transforms accept
at: { id }, such aseditor.update.nodes.move({ at: { id }, to }), and a write reaches the element in its own root. An id that no element holds changes nothing. - Add
WithNodeTarget<Options>andPlacedTarget<T>to type a plugin method whoseattakes every node target. - Both need a schema that declares
idas a generated, unique string on every element type, as Plate'sElementIdPlugindoes. With any other schema they throw.
Migration: In an editor whose elements store ids,
unique.holder('id', value)throws. Usenodes.byId(value). -
- Fix pasting a copy that ends in a quote, such as text copied from a paragraph into the quote after it or across two quotes, into the middle of a paragraph, which changed nothing. The first copied line now joins the text before the caret, and the last lands in a quote with the text after the caret.
- Fix pasting two titles into the middle of a block, which changed nothing. Each pasted block now takes the type its place allows. In a title, the second title becomes a paragraph, as it does when you press Return in a title.
-
- Fix the text after the caret taking the last pasted block's properties, such as
checked, and losing the destination block's, such asalign, when you paste a copy of quoted paragraphs into the middle of a quoted paragraph. It now keeps the destination block's properties, as Return splits them. - Fix pasting blocks that equal the destination block into its middle keeping a
split: 'drop'property and the destination's unique value on the text after the caret. That text now gets the properties Return gives it.
- Fix the text after the caret taking the last pasted block's properties, such as
-
- Add
editor.read.ranges.isEmpty(range), which answers whether a range covers no letter and no whole void element, such as a mention. - Add the
hideEmptyoption tocreateAnnotationStore. An annotation whose range covers nothing then resolves withrange: null, leavesgetAnnotationsAt, and its listeners hear when its text is deleted or comes back, or when a plugin reconfigure changes what counts as content. - Fix a view without a preview reading the preview its editor shows. It now reads the stored document.
- Add
-
- Keep a view that sets its own authored mode showing that mode while the editor it comes from shows a review preview. The view
EditorRootmounts copies the editor's mode when it mounts, so callsetViewon that mounted view to change what it shows. - Fix a document view read throwing while the editor it comes from shows a review preview.
- Keep a view that sets its own authored mode showing that mode while the editor it comes from shows a review preview. The view
-
- Fix
nodes.byId,unique.holderandat: { id }targets in a transaction over a view of another document. They find the element that held the value in the view's document, where a copy the transaction inserted before that element used to take the value. This holds in the main root and in named roots, and inside acollaboration-tagged update of the source editor. - Refuse a spec that a transaction over a view of another document built when the source editor applies it, with
Cannot apply a transaction spec outside its base state.
- Fix
Full changelog: v54.0.0-beta.3...v54.0.0-beta.4
v54.0.0-beta.3 (2026-11-23)
Published @platejs/cli@54.0.0-beta.3.
Published @platejs/test@54.0.0-beta.3.
-
- Fix Backspace or Delete that empties a heading turning it into a paragraph. The empty heading stays, and the next Backspace turns it into a paragraph.
- Fix Turn into Quote, the blockquote shortcut and
editor.plugin(BlockquotePlugin).update.wrap()putting each selected block in its own blockquote. Adjacent selected blocks now share one blockquote.
-
- Fix the AI menu's first edit suggestion replacing the old selected text, and leaving stray characters, when you typed inside the selection after sending the request
-
- Keep
AIChatPlugin's preview and pending proposal when a transaction guard refuses its write.accept,insertBelowandreplaceSelectionclose the session only once their write commits. - Return
{ status: 'invalid' }fromhide,reset,show,submitandreload, and keep the session, when a guard refuses discarding the pending proposal. - Keep a streamed proposal when a guard refuses a chunk, and add the next chunk to the same undo step.
- Keep
-
- Paste text or a link onto a focused board to add it as a selected note at the pointer, or at the view's center when the pointer is off the board. One undo removes it.
- Paste or drop picture files onto a board to upload them as image shapes, in a row centered on the pointer or the drop point.
- Upload the file of a picture copied from a web page when its link does not load, so the picture still lands on the board.
- Add
upload(files)touseBoardActions()to upload picture files, such as ones from a toolbar's file picker. ReadtakesPictureFilesthroughuseBoardViewto disable that button on a board that takes no picture files. - Add
fitsAfter(key)to the upload plugin's API to ask whether another file's placeholder fits after an upload placeholder, such as before a file picker opens for several files.
-
- Fix board pen lines, geo shapes and notes whose type an app renames through
schema.override. They now draw, erase, take the toolbar's styles and get announced like shapes of the default type.
- Fix board pen lines, geo shapes and notes whose type an app renames through
-
- Add
read.board.strokePath(id), which returns the SVG path a board draws for a pen line, ornullwhenidnames no pen line. It needs no mounted board. - Move
BoardStrokePathfromplatejs/board/reacttoplatejs/board. Import it fromplatejs/board.
- Add
-
- Add a
caretplugin slot, rendered after the Editable, for UI that follows the caret. Inside it,useEditor()and theeditableRefprop answer for the view that holds the caret, such as a board note, so a floating toolbar in this slot follows the caret into the note. - Remove
EditorSelectionViewand theuseSelectionViewhook fromplatejs/react.
Migration: Drop the
<EditorSelectionView>wrapper. Move UI that used it inside an editing area, such as a floating toolbar, fromafterEditableto thecaretslot:const FloatingToolbarPlugin = definePlugin('floatingToolbar', { slots: { caret: () => <FloatingToolbar /> }, });
- Add a
-
- Keep a code fence's info string after its language, such as
title="a.ts" {3-5}, as the code block'smetathrough Markdown and HTML import and export
- Keep a code fence's info string after its language, such as
-
- Fix a CodeMirror code block dropping the next keystroke, paste, cut or drop when the editor resets its text during an input method composition, such as after a refused edit or a collaborator's change.
- Keep a CodeMirror code block's caret where the editor puts it when the editor resets its text.
- Fix a CodeMirror code block turning into a paragraph in WebKit browsers when an input method empties it.
-
- Fix Enter in the empty last body line of an open Details moving the caret into the block after it. Enter now adds an empty paragraph right after the Details and puts the caret there.
-
- Report
condition-loopon each field of a loop of conditions, such as A naming B while B names A, and refuse anupdatewhose condition would close one. - Refuse a
fieldIdin the settings ofinsertor the patch ofupdate. - Check a condition that names its own field against the kind the same
updatesets. - List the page's fields in
read.fields()from a board note's view, in reading order.
- Report
-
- Add
fillRoletoBaseFieldPlugin's state. While it is set, the editor refuses every local change except a fitting or cleared value on that role's fields, and undo or redo returnsblockedat a step that changed anything else. - Start a new undo step when a field write's role differs from the step before it, so a fill never shares an undo step with an author's edit.
- Refuse the whole update instead of throwing when, while a fill role is set,
updatenames a field that no longer exists or a value that no longer fits it.
- Add
-
5c0aff5by @zbeyens – Addeditor.plugin(BaseHeadingPlugin).read.canSetLevel(level), which answers whethersetLevel(level)can apply to every selected block. A menu can disable a heading level the caret's parent cannot hold. -
868638aby @zbeyens – Fix a hydration mismatch in a control that readsuseEditorFocused()and hydrates after its editor took focus, such as a toolbar behindSuspensebeside anEditorContentwithautoFocus -
7a0e402by @zbeyens – ReplaceInkLayerwithInkContent, which mounts as the ink plugin'swrapContentslot. In development, it throws when anything sits between the Editable and the ink layer, such as a toolbar the layer would cover.Migration: Replace the
wrapContentslot that rendered<InkLayer sign={Sign} />after its children withwrapContent: (props) => <InkContent {...props} sign={Sign} />. -
405fd82by @zbeyens – Keep a pen mark's sign where its block stood when the block is deleted while the mark is being drawn, here or by a collaborator, however many other edits come before the mark saves -
0938c3dby @zbeyens – Save pen marks in a packed format about half the size. Marks saved by 54.0.0-beta.2 still read, but an app still on 54.0.0-beta.2 shows none of the marks this version saves -
dffae16by @zbeyens – Fix ink marks left off their words after a style change moves the words without resizing the paragraph. Marks now place again a quarter second after the last edit, layout change or scroll -
7bc3175by @zbeyens – Speed up typing, drawing, scrolling and deleting many marked blocks in documents with many ink marks.read.marks()keeps each unchanged mark's object between reads. -
6d7c412by @zbeyens – Leave out the ink paragraph snapshots no mark points at when an editor opens a saved document, so a removed mark's words leave the file at its next save. Snapshots saved by 54.0.0-beta.2 stay, so an app still on beta.2 can undo back to its own marks. -
- Keep a Markdown file's leading YAML or TOML front matter.
editor.api.markdown.parsestores it atmeta['markdown.frontmatter']instead of reading it as a rule and a heading,serializewrites it back first, andgetMarkdownFrontmatterfromplatejs/markdownreads it - Fail
serializeunder the reject policy withmarkdown-frontmatter-omittedwhen it cannot write the stored front matter back. UnderlossPolicy: 'allow'it writes the file without the block and warns - Start a serialized file with a line ending when its body would otherwise read back as front matter, such as two
---rules
- Keep a Markdown file's leading YAML or TOML front matter.
-
- Style an unclosed bold, italic or strikethrough run in a
partialparse,parseSliceorparseInlinepreview as it will read once it closes, and hide up to three trailing*,_,~or\characters until the next chunk decides them. A later chunk can take back styling a preview showed
- Style an unclosed bold, italic or strikethrough run in a
-
- Fix Markdown that read back differently after a save: code spans with line endings or edge spaces, emphasis around a link, nested emphasis, a bare URL right after text and an empty list item before a nested ordered list
- Fix streamed Markdown parses that missed a link definition inside a quote or a list item
-
- Fix
parseSlicewithpreviousreturning a different preview than a fresh parse for streamed Markdown that holds, among others, no-break spaces in a blank line, a math block opened with more than two dollars, a link definition with an escaped bracket, a byte order mark or a lone CR line ending
- Fix
-
- Make
useEditor()outside every editing area of anEditorRoot, such as in a fixed toolbar, return the editor of the root that holds the caret. A toolbar command such aseditor.plugin(BoldPlugin).update.toggle()then changes a board's note while the caret is in it. With nothing selected it returns the editor of the primary root.useEditorSelector,useEditorReadOnly,useEditorFocusedand the other hooks that read that editor follow it too, and a component whose selected value stays equal no longer renders when the caret moves. - Make
useEditorHistory()with noeditororrootundo and redo the editoruseEditor()returns. It no longer needs anEditorRootaround it. - Make
useModelEditor()underEditorControllerreturn the document editor of theEditorRootused last, where it threw.
Migration: A lock set through the editor that
useEditor()returns outside every editing area refuses the commands sent through that editor and no longer locks anEditorContent. To lock oneEditorContent, calluseEditor()inside itsEditorContainer:function Lock() { const editor = useEditor(); return ( <button onClick={() => setEditorReadOnly(editor, true)}>Lock</button> ); } <EditorRoot editor={editor}> <EditorContainer> <Lock /> <EditorContent /> </EditorContainer> </EditorRoot>;
- Make
-
038a7bcby @zbeyens – Give each tile of a table paste, and each cell of a table fill, its own copy of an element another element references, such as a field. Each copy gets a new id, and each copied reference names the copy in its own tile or cell. -
- Add
admitandfillto the upload plugin's update API. A plugin with its own insert, such as one that wraps each file's placeholder in a container, checks a batch withadmit, inserts the placeholders it returns and gives each file its placeholder withfill.
- Add
-
- Report an unsupported file type first when a file of another kind is picked for an upload placeholder, before the size and configuration checks.
- Fix an upload placeholder's submit sending its file twice, losing it or sending an older file when its transaction spec replays, another commit or a Cancel comes first, or a newer submit overtakes it.
-
cccbe29by @zbeyens – Fix Next.js production builds with Turbopack's default scope hoisting, where a page with an editor failed to prerender withEditor read registrations must be created by the plugin read factory. Apps no longer needexperimental.turbopackScopeHoisting: false. -
18448e7by @zbeyens – Fix a delete into a code block turning all of its lines into text of the block before it. Delete at the end of the block before joins only the first code line, and the code block keeps its other lines and its language. A range delete that covers the whole block before removes that block and keeps the code block whole. -
18448e7by @zbeyens – Fix a click right of a code line putting the caret at another line's end or at the block's start. A click past a line's end now puts the caret at that line's end, and a click on an empty line puts it on that line. -
44ce4cbby @zbeyens – Fix Backspace and Delete next to mentions, inline voids and inlines a caret may not stop in- Word Backspace and word Delete count a mention or another inline void as one word, and remove only that atom with the spaces between it and the caret.
- Backspace and Delete inside or at the edge of a writable inline with
selectable: falseremove one character, as they do in a link. - Delete that stops before a read-only inline leaves the caret before it, so the next Delete removes it and typing works.
- Backspace and Delete beside a block with
selectable: falseremove it whole even when it holds a mention.
-
77ca905by @zbeyens – Open closed content, such as a closed details, when a block drag rests on its block for 800 ms, so the drop can land inside. The content'sonMaterializecallback runs with the newdragreason; ignore that reason to keep the content closed during a drag. -
1861fc4by @zbeyens – Fix the range a paste or a transfer copy returns with the authored plugin in Editing, which started one character late when the pasted text joined the text before it. -
- Return
stalefrom an external-text view'sdispatchwhen the editor refuses the edit, such as one Suggesting cannot record, and reset the view to the editor's text. - Keep the undo boundary when the editor refuses an external-text edit, so the next edit after a composition gets its own undo step.
- Return
-
7ca1ad5by @zbeyens – Fix ArrowDown and ArrowUp in Firefox into a block that scrolls, such as a code block withoverflow-x: auto, which put the caret at the end of the block instead of on its nearest line -
022a98bby @zbeyens – Run a plugin'supdatefactory the first time an update or a correction reads its group, not at the start of every update, so updates that never read a group skip it -
0b0f932by @zbeyens – Fix pasting blocks at a caret inside a link. A quote pasted in the middle of a link in a quoted paragraph no longer splits the quote in three, and blocks pasted at a link's start or end land just outside the link instead of joining into one line. -
8623edfby @zbeyens – Fix the caret after pasting a link right before another link, or an inline void such as a mention right before another inline void, so a typed letter lands between the two -
d472a04by @zbeyens – Fix the caret and selection in mixed content and around marked controls- Home and End stay on the text before or after a block nested in a text block.
- After a command removes a text element's only text, a typed letter lands in that element.
- A click after a double-click in decorated text, such as a lint underline, puts the caret at the clicked offset.
- A read-only editor keeps its selection painted after a command that re-renders it, such as Add comment.
- A triple-click selects only the clicked line in a code block or a block with line breaks, and only the clicked text beside a nested block.
- A backward selection stays backward after typing over it and undoing.
- The selection stays painted when focus moves to a marked control in Firefox or Safari.
-
7ca1ad5by @zbeyens – Fix Undo and Redo pressed in an independent editor nested in a void element, which ran the outer editor's history instead of its own -
- Fix a paste into a code block, or any element whose schema allows one text, being refused in Editing and in your own pending code block in Suggesting.
- Fix a letter or newline typed in Editing at the start or end of a pending code block, or in an empty one, being refused. The text now joins the block's suggestion.
- Fix a letter or paste in Editing being refused in a code block whose text holds another author's pending format, such as a color.
- Refuse typing, Enter, paste, Backspace, Delete and mark toggles in a code block whose deletion is pending, in Suggesting and Editing, instead of landing the edit beside the block or in its struck text. The refusal reaches
subscribeRefusalsasunrepresentable. Decide the block's pending deletion first.
-
60c44c5by @zbeyens – FixRangeGeometry.clipRectandvisiblefor an Editable whose text paints outside its own box without clipping, such as a board's. A popup placed byuseSelectionGeometry, such as the floating toolbar, now shows over that text, anduseEditableClipcuts by the same area. -
16716a6by @zbeyens – Give each pasted or duplicated element a new value for every unique property another property'sreferencesnames, such as a field id, and point each copied reference at the copy. A reference whose target the paste or duplicate drops keeps naming the original. -
70560eeby @zbeyens – Fix a property write in the same update as a paste, a document replace or a content completion, such as a plugin completing a pasted field's id, which landed on another node or was lost when the authored plugin recorded the update -
94e8d60by @zbeyens – Fix a closed quote pasted at a caret inside a quoted paragraph losing the text after the caret. A table pasted at a caret inside a table cell keeps the cell's text after the caret too. -
19995c7by @zbeyens – AddnamedByto a schema record set, so a set declares which set's records point at its records through anamesfunction that lists the ids a record points at.- An editor created on a saved value leaves out the records of that set that nothing points at and
keepdoes not accept, so the next save drops them. tx.history.restorestops undo or redo before a step whose replay would point a record at a missing one.- Undo and redo skip writes to a record set the current schema retains.
- An editor created on a saved value leaves out the records of that set that nothing points at and
-
02007e6by @zbeyens – Open a document's saved records faster. Each record loads once as text and parses the first time something reads it. Records read back fromeditor.read.value()now always list their keys in sorted order, as records written after the open already did -
- Return
{ reason, status: 'blocked' }fromeditor.api.history.undo()andredo()when the editor refuses the replay, instead of throwing, and pass it to the Editable'sonHistoryReplayfor a keyboard undo or redo. The step stays in history. - Fix history left busy after a session undo or redo, such as a comment thread restore.
- Send an edit that a plugin makes in reaction to a remote Yjs import or another collaboration update to the other peers.
- Fix the authored plugin's
subscribeRefusalspassing on refusals from other plugins, such as a node write veto.
- Return
-
60c44c5by @zbeyens – RemoveuseSelectionViewfromplitejs/react. UseuseCaretEditor()for the editor of the root that holds the caret. -
67de7deby @zbeyens – MakeuseRootEditor()anduseCaretEditor()return one editor per root under anEditorRoot, so a lock set through that editor holds after the caret leaves its root and comes back. A renderer inside an editing area, such as a shape on a board, gets an editor of its own, so a lock set from outside never reaches it. The editor'sisFocused(),isComposing(),focus()andblur()act on the editing area that shows its root, and throw while none does. -
5c0aff5by @zbeyens – Addeditor.read.schema.canPlace(nodes, { at, replace, root }), which answers whethernodescan land at a slot, or take the place of the child there, under the ruletx.blocks.insertenforces. A menu can disable what the parent cannot hold. -
b294cdfby @zbeyens – Fix selector hooks calling a customequalityFnwithnullbefore the first result.equalityFnnow takes(a: T, b: T) => boolean. -
24651f9by @zbeyens – Fixtx.blocks.toggle(props, { wrap: true })wrapping each selected block in its own wrapper. Adjacent selected blocks with the same parent now share one wrapper. -
- Fix
unique.holderin an authored preview or a projected document view returning the stored document's key and path, or nothing. A read that finds a node by a unique id, such as a board'sread.board.shape, now works there.
- Fix
-
59aa10bby @zbeyens – Speed up typing in documents whose schema declares auniqueproperty, such as block ids. -
25fc8f2by @zbeyens – Makeeditor.plugin(Plugin)on a React view editor, such as the oneuseRootEditor()returns, return the same object on every call, so a hook that lists it as a dependency no longer runs again on each render. -
1946357by @zbeyens – LetsetEditorViewing()take the editorcreateEditor()returns instead of throwing. That editor has no Mode apart from its lock, so Viewing locks it and leaving Viewing unlocks it, assetEditorReadOnly()does. -
014d1c8by @zbeyens – Fix selections across blocks a virtualized editor has not mounted, and arrow keys beside hidden content- A Shift-click or Shift+ArrowDown range that reaches unmounted blocks stays selected, and the next letter replaces it.
- Undo that restores a range far above the viewport scrolls to it and shows it selected.
- ArrowUp and ArrowDown after a click move into content an app hides, such as a collapsed accordion, instead of skipping past it.
-
- Fix Backspace after a triple-click putting the caret at the end of the block above. The caret now starts the block that moves up.
- Fix Backspace after a triple-click on the last block, a block next to a table or a table's only cell removing it. The block or cell now stays, empty, with the caret in it.
- Fix Backspace over whole blocks selected as text replacing them with a paragraph. The first block stays, so a checklist item keeps its checkbox.
- Fix typing over several whole blocks giving the new text the default block type. The text now takes the first block's type.
-
- Fix
comparetext changes to mark whole words instead of letters, so "like" to "love" is one change instead of "ik" to "ov"
- Fix
Thanks to everyone who contributed to this release:
@zbeyens
Full changelog: v54.0.0-beta.2...v54.0.0-beta.3
v53.5.6
- #5338 by @yulman2207 –
- Accept
@hocuspocus/providerv4 in the peer dependency range, so installing it no longer warns about an unmet peer.
- Accept
Thanks to everyone who contributed to this release:
@yulman2207
Full changelog: v53.5.5...v53.5.6
v53.5.5
- #5333 by @zbeyens –
- Stop writing an extra blank paragraph after each image, and after any other void element, when exporting to DOCX.
Thanks to everyone who contributed to this release:
@zbeyens
Full changelog: v53.5.4...v53.5.5
v53.5.4
- #5331 by @zbeyens –
- Preserve images and formatted captions inside table cells and list items when exporting to DOCX.
- Keep continuation paragraphs separate within a list item without adding extra list markers.
- Fit images within their table cell or list text width and preserve the image paragraph indentation.
- Updated
@platejs/markdown.
-
#5328 by @yulman2207 –
- Read CRLF and CR line endings in
deserializeMdinput as LF, so the value and theserializeMdoutput match the LF version of the same Markdown. Before, CRLF input kept\rat the end of code lines, paragraph and list lines, inline code and math, and the serialized output mixed line endings.
- Read CRLF and CR line endings in
-
#5329 by @yulman2207 –
- Fix
deserializeMddropping a soft line break after a link, mark or inline code, which joined the words on either side of the break.
- Fix
Thanks to everyone who contributed to this release:
@yulman2207, @zbeyens
Full changelog: v53.5.3...v53.5.4
v53.5.2
- #5325 by @dylans –
- Fix
useElementandusePathre-rendering every descendant element when an ancestor element changes, such as every cell of a table on each keystroke in one cell. They now re-render only when their own element or path changes.
- Fix
- Updated
@platejs/core.
- Updated
@platejs/core,@platejs/utils.
Thanks to everyone who contributed to this release:
@dylans
Full changelog: v53.5.1...v53.5.2
v53.5.1
- #5232 by @yulman2207 –
- Fix tables nested in table cells missing from the exported DOCX.
- Fix invalid DOCX output for a table cell that holds only a skipped image, such as a WebP.
Thanks to everyone who contributed to this release:
@yulman2207
Full changelog: v53.5.0...v53.5.1
v53.5.0
- #5233 by @vincent69001 –
- Add
paragraphSpacingandheadingSpacingtoexportToDocx,exportEditorToDocx,editor.api.docxExport.exportToBlob,editor.tf.docxExport.exportAndDownloadandhtmlToDocxBlobto set the space Word adds around paragraphs and headings, in twentieths of a point. Without them the file is unchanged.
- Add
Thanks to everyone who contributed to this release:
@vincent69001
Full changelog: v53.4.0...v53.5.0
v53.4.0
- #5193 by @vincent69001 –
- Add
pageNumbertoexportToDocx,exportEditorToDocx,editor.api.docxExport.exportToBlobandeditor.tf.docxExport.exportAndDownloadto number the pages in a footer.
- Add
Thanks to everyone who contributed to this release:
@vincent69001
Full changelog: v53.3.18...v53.4.0