udecode/plate
 Watch   
 Star   
 Fork   
3 hours ago
plate

v54.0.0-beta.5 (2026-11-24)

@platejs/cli

Published @platejs/cli@54.0.0-beta.5.

@platejs/test

Patch Changes

  • 8bee987 by @zbeyens –
    • Fix clipboard.pasteText and clipboard.pasteHtml in @platejs/test/playwright to 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/test with the platejs release of the same version.

platejs

Patch Changes

  • dee395d by @zbeyens –

    • 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.
  • dca432b by @zbeyens –

    • Add fillsField(field, value) to platejs/field to check whether a value fills a field. required, the filled and blank conditions 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.
  • d2af1ef by @zbeyens –

    • Fix the ink layer holding the outline of each removed pen mark in memory while undo history can still restore that mark
  • 4081ba8 by @zbeyens –

    • 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

plitejs

Patch Changes

  • dee395d by @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 or plitejs/sync map the range as before.

Full changelog: v54.0.0-beta.4...v54.0.0-beta.5

4 hours ago
plate

v54.0.0-beta.4 (2026-11-24)

@platejs/cli

Published @platejs/cli@54.0.0-beta.4.

@platejs/test

Published @platejs/test@54.0.0-beta.4.

platejs

Patch Changes

  • 3a568a1 by @sin6626 –

    • Fix BlockPlaceholderPlugin drawing its placeholder on top of the editor placeholder when the editor holds only an empty list item. Only the editor placeholder shows there now, and an editor without a placeholder still shows the block placeholder on that item.
  • df47a83 by @zbeyens –

    • Add exportPicture({ format, kit }) to useBoardActions() in platejs/board/react. It draws the board, or the selected shapes and frames, as a PNG or an SVG with the static plugins in kit, which may be a promise such as a dynamic import. It resolves null when there is nothing to draw, and rejects when the board is not on the page.
    • Add the BoardPicture, BoardPictureOptions and BoardPictureWarning types. 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.
  • 6016f0d by @zbeyens –

    • 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, and idsAt no 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() with null once the pending draft's text is deleted.
  • a752fda by @zbeyens – Report a lossy-content diagnostic 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 default lossPolicy: 'reject' refuses the export. Pass lossPolicy: 'allow' to export the file with the warning.

  • 7428002 by @zbeyens – Fix EditorRoot's readOnly letting a write through an EditorContent in 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 the EditorContent. An EditorContent with readOnly={false} stays writable.

  • a8d490e by @zbeyens –

    • Accept at: { id } in node reads and transforms, including those that select by plugin, such as editor.read.nodes.block({ at: { id }, type: BaseParagraphPlugin }), and in the insert of date, mention, inline equation, field and footnote.
    • Remove ElementIdPlugin's read.entry(id) and the ElementIdEntry type.

    Migration: Use editor.read.nodes.byId(id). It returns { key, node, path, root? }, or null instead of undefined when no element holds the id.

  • c16a73c by @zbeyens –

    • Add read.submission(role) to the field plugin. It returns a FieldSubmission, { role, values }, with the value of each of that role's fields keyed by fieldId. A field with no value is left out.
    • Add applyFieldValues(template, submissions, options?) to platejs/field. It checks each role's submission against an empty template, in the order the roles submitted, and returns a FieldApplyResult: the filled document, the roles that still have to submit as pending, or the refusals as FieldRefusal objects. A required checkbox counts as answered only when it is ticked. Pass a renamed field type as options.type.
  • a29e09a by @zbeyens –

    • 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.
  • 828f500 by @zbeyens –

    • Add RawHtmlPlugin to platejs/markdown. Installed beside MarkdownPlugin, 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 a markdown-unsafe-content warning.
    • Keep raw HTML as plain text when MarkdownPlugin's plainMarks, or a serialize call's, names rawHtml.
    • Drop a 53.x document's saved rawHtml in migrateV54 where no plugin declares it, as migrateV54 drops ai.
    • Refuse a 53.x document in migrateV54 when a pending suggestion changes ai and no plugin declares ai, instead of opening a suggestion that loses the mark when accepted.
  • 3106db0 by @zbeyens –

    • Add follow-up paste rules. A defineInputRule rule with target: 'insertData', resolve and followUp runs followUp after a local paste that history saved, as its own undo step on the view that pasted.
    • Add key to an input rule's editor, which returns a node's stable key, as editor.key does.
    • Add MediaEmbedRules.autoEmbed({ variant: 'paste' }) to platejs/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.
  • 64c3257 by @zbeyens –

    • Run a useEditorSelector selector again when its editor shows a different review preview, so hooks built on it, such as useFieldRead, show what the preview shows.
    • Fix renderStaticHtml with a document option throwing while the editor shows a review preview.
  • efacbf4 by @zbeyens – Give each column its own width while a suggested column insertion or deletion waits. api.table.columnWidths and read.table.cell show 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, and api.table.createResize throws a RangeError for one; row edges still resize.

plitejs

Patch Changes

  • c5f9275 by @felixfeng33 – Fix accepting a line typed right after another author's pending join, which returned blocked until 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.

  • 7428002 by @zbeyens – Fix EditorRoot's readOnly letting a write through in the render that sets it, such as from a removed control's cleanup or a custom element's connectedCallback. That write now throws through an Editable, PagedEditable or VirtualizedEditable, also when the render mounts, removes, hides or suspends it. An EditorReadOnlyProvider that sets no readOnly no longer makes those editables writable.

  • 708a247 by @felixfeng33 – Fix accepting a join, or rejecting a split, that merges a line another author inserted or struck, which returned blocked until 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.

  • a8d490e by @zbeyens – Add nodes.byId(id) to reads and transactions, and accept { id } as a node target

    • editor.read.nodes.byId(id), or tx.nodes.byId(id) inside an update, returns the element that holds the stored id as { key, node, path, root? }, or null when no element holds it.
    • Node reads and node transforms accept at: { id }, such as editor.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> and PlacedTarget<T> to type a plugin method whose at takes every node target.
    • Both need a schema that declares id as a generated, unique string on every element type, as Plate's ElementIdPlugin does. With any other schema they throw.

    Migration: In an editor whose elements store ids, unique.holder('id', value) throws. Use nodes.byId(value).

  • 263988d by @zbeyens –

    • 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.
  • dc2d018 by @zbeyens –

    • Fix the text after the caret taking the last pasted block's properties, such as checked, and losing the destination block's, such as align, 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.
  • 6016f0d by @zbeyens –

    • 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 hideEmpty option to createAnnotationStore. An annotation whose range covers nothing then resolves with range: null, leaves getAnnotationsAt, 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.
  • 64c3257 by @zbeyens –

    • Keep a view that sets its own authored mode showing that mode while the editor it comes from shows a review preview. The view EditorRoot mounts copies the editor's mode when it mounts, so call setView on that mounted view to change what it shows.
    • Fix a document view read throwing while the editor it comes from shows a review preview.
  • c16a73c by @zbeyens –

    • Fix nodes.byId, unique.holder and at: { 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 a collaboration-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.

Full changelog: v54.0.0-beta.3...v54.0.0-beta.4

1 days ago
plate

v54.0.0-beta.3 (2026-11-23)

@platejs/cli

Published @platejs/cli@54.0.0-beta.3.

@platejs/test

Published @platejs/test@54.0.0-beta.3.

platejs

Patch Changes

  • 24651f9 by @zbeyens –

    • 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.
  • c28d5ad by @zbeyens –

    • 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
  • 5716f93 by @zbeyens –

    • Keep AIChatPlugin's preview and pending proposal when a transaction guard refuses its write. accept, insertBelow and replaceSelection close the session only once their write commits.
    • Return { status: 'invalid' } from hide, reset, show, submit and reload, 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.
  • 0fe05e3 by @zbeyens –

    • 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) to useBoardActions() to upload picture files, such as ones from a toolbar's file picker. Read takesPictureFiles through useBoardView to 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.
  • 75b505a by @zbeyens –

    • 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.
  • 83517ee by @zbeyens –

    • Add read.board.strokePath(id), which returns the SVG path a board draws for a pen line, or null when id names no pen line. It needs no mounted board.
    • Move BoardStrokePath from platejs/board/react to platejs/board. Import it from platejs/board.
  • 972c50f by @zbeyens –

    • Add a caret plugin slot, rendered after the Editable, for UI that follows the caret. Inside it, useEditor() and the editableRef prop 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 EditorSelectionView and the useSelectionView hook from platejs/react.

    Migration: Drop the <EditorSelectionView> wrapper. Move UI that used it inside an editing area, such as a floating toolbar, from afterEditable to the caret slot:

    const FloatingToolbarPlugin = definePlugin('floatingToolbar', {
      slots: { caret: () => <FloatingToolbar /> },
    });
  • f7fa388 by @zbeyens –

    • Keep a code fence's info string after its language, such as title="a.ts" {3-5}, as the code block's meta through Markdown and HTML import and export
  • eff0999 by @zbeyens –

    • 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.
  • 9d460d1 by @zbeyens –

    • 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.
  • 8883a26 by @zbeyens –

    • Report condition-loop on each field of a loop of conditions, such as A naming B while B names A, and refuse an update whose condition would close one.
    • Refuse a fieldId in the settings of insert or the patch of update.
    • Check a condition that names its own field against the kind the same update sets.
    • List the page's fields in read.fields() from a board note's view, in reading order.
  • 839996e by @zbeyens –

    • Add fillRole to BaseFieldPlugin'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 returns blocked at 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, update names a field that no longer exists or a value that no longer fits it.
  • 5c0aff5 by @zbeyens – Add editor.plugin(BaseHeadingPlugin).read.canSetLevel(level), which answers whether setLevel(level) can apply to every selected block. A menu can disable a heading level the caret's parent cannot hold.

  • 868638a by @zbeyens – Fix a hydration mismatch in a control that reads useEditorFocused() and hydrates after its editor took focus, such as a toolbar behind Suspense beside an EditorContent with autoFocus

  • 7a0e402 by @zbeyens – Replace InkLayer with InkContent, which mounts as the ink plugin's wrapContent slot. 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 wrapContent slot that rendered <InkLayer sign={Sign} /> after its children with wrapContent: (props) => <InkContent {...props} sign={Sign} />.

  • 405fd82 by @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

  • 0938c3d by @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

  • dffae16 by @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

  • 7bc3175 by @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.

  • 6d7c412 by @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.

  • 78987a9 by @zbeyens –

    • Keep a Markdown file's leading YAML or TOML front matter. editor.api.markdown.parse stores it at meta['markdown.frontmatter'] instead of reading it as a rule and a heading, serialize writes it back first, and getMarkdownFrontmatter from platejs/markdown reads it
    • Fail serialize under the reject policy with markdown-frontmatter-omitted when it cannot write the stored front matter back. Under lossPolicy: '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
  • 2ad50b0 by @zbeyens –

    • Style an unclosed bold, italic or strikethrough run in a partial parse, parseSlice or parseInline preview 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
  • 824887f by @zbeyens –

    • 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
  • a1af219 by @zbeyens –

    • Fix parseSlice with previous returning 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
  • 9fc3e9a by @zbeyens –

    • Make useEditor() outside every editing area of an EditorRoot, such as in a fixed toolbar, return the editor of the root that holds the caret. A toolbar command such as editor.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, useEditorFocused and 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 no editor or root undo and redo the editor useEditor() returns. It no longer needs an EditorRoot around it.
    • Make useModelEditor() under EditorController return the document editor of the EditorRoot used 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 an EditorContent. To lock one EditorContent, call useEditor() inside its EditorContainer:

    function Lock() {
      const editor = useEditor();
    
      return (
        <button onClick={() => setEditorReadOnly(editor, true)}>Lock</button>
      );
    }
    
    <EditorRoot editor={editor}>
      <EditorContainer>
        <Lock />
        <EditorContent />
      </EditorContainer>
    </EditorRoot>;
  • 038a7bc by @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.

  • 9b218c9 by @zbeyens –

    • Add admit and fill to 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 with admit, inserts the placeholders it returns and gives each file its placeholder with fill.
  • 0db21cf by @zbeyens –

    • 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.

plitejs

Patch Changes

  • cccbe29 by @zbeyens – Fix Next.js production builds with Turbopack's default scope hoisting, where a page with an editor failed to prerender with Editor read registrations must be created by the plugin read factory. Apps no longer need experimental.turbopackScopeHoisting: false.

  • 18448e7 by @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.

  • 18448e7 by @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.

  • 44ce4cb by @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: false remove 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: false remove it whole even when it holds a mention.
  • 77ca905 by @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's onMaterialize callback runs with the new drag reason; ignore that reason to keep the content closed during a drag.

  • 1861fc4 by @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.

  • eff0999 by @zbeyens –

    • Return stale from an external-text view's dispatch when 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.
  • 7ca1ad5 by @zbeyens – Fix ArrowDown and ArrowUp in Firefox into a block that scrolls, such as a code block with overflow-x: auto, which put the caret at the end of the block instead of on its nearest line

  • 022a98b by @zbeyens – Run a plugin's update factory 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

  • 0b0f932 by @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.

  • 8623edf by @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

  • d472a04 by @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.
  • 7ca1ad5 by @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

  • 674a565 by @zbeyens –

    • 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 subscribeRefusals as unrepresentable. Decide the block's pending deletion first.
  • 60c44c5 by @zbeyens – Fix RangeGeometry.clipRect and visible for an Editable whose text paints outside its own box without clipping, such as a board's. A popup placed by useSelectionGeometry, such as the floating toolbar, now shows over that text, and useEditableClip cuts by the same area.

  • 16716a6 by @zbeyens – Give each pasted or duplicated element a new value for every unique property another property's references names, 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.

  • 70560ee by @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

  • 94e8d60 by @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.

  • 19995c7 by @zbeyens – Add namedBy to a schema record set, so a set declares which set's records point at its records through a names function 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 keep does not accept, so the next save drops them.
    • tx.history.restore stops 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.
  • 02007e6 by @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 from editor.read.value() now always list their keys in sorted order, as records written after the open already did

  • 806ba41 by @zbeyens –

    • Return { reason, status: 'blocked' } from editor.api.history.undo() and redo() when the editor refuses the replay, instead of throwing, and pass it to the Editable's onHistoryReplay for 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 subscribeRefusals passing on refusals from other plugins, such as a node write veto.
  • 60c44c5 by @zbeyens – Remove useSelectionView from plitejs/react. Use useCaretEditor() for the editor of the root that holds the caret.

  • 67de7de by @zbeyens – Make useRootEditor() and useCaretEditor() return one editor per root under an EditorRoot, 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's isFocused(), isComposing(), focus() and blur() act on the editing area that shows its root, and throw while none does.

  • 5c0aff5 by @zbeyens – Add editor.read.schema.canPlace(nodes, { at, replace, root }), which answers whether nodes can land at a slot, or take the place of the child there, under the rule tx.blocks.insert enforces. A menu can disable what the parent cannot hold.

  • b294cdf by @zbeyens – Fix selector hooks calling a custom equalityFn with null before the first result. equalityFn now takes (a: T, b: T) => boolean.

  • 24651f9 by @zbeyens – Fix tx.blocks.toggle(props, { wrap: true }) wrapping each selected block in its own wrapper. Adjacent selected blocks with the same parent now share one wrapper.

  • 97828f2 by @zbeyens –

    • Fix unique.holder in 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's read.board.shape, now works there.
  • 59aa10b by @zbeyens – Speed up typing in documents whose schema declares a unique property, such as block ids.

  • 25fc8f2 by @zbeyens – Make editor.plugin(Plugin) on a React view editor, such as the one useRootEditor() returns, return the same object on every call, so a hook that lists it as a dependency no longer runs again on each render.

  • 1946357 by @zbeyens – Let setEditorViewing() take the editor createEditor() returns instead of throwing. That editor has no Mode apart from its lock, so Viewing locks it and leaving Viewing unlocks it, as setEditorReadOnly() does.

  • 014d1c8 by @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.
  • faf5cc3 by @zbeyens –

    • 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.
  • 70d5dc5 by @zbeyens –

    • Fix compare text changes to mark whole words instead of letters, so "like" to "love" is one change instead of "ik" to "ov"

Contributors

Thanks to everyone who contributed to this release:

@zbeyens

Full changelog: v54.0.0-beta.2...v54.0.0-beta.3

13 days ago
plate

v53.5.6

@platejs/yjs

Patch Changes

  • #5338 by @yulman2207 –
    • Accept @hocuspocus/provider v4 in the peer dependency range, so installing it no longer warns about an unmet peer.

Contributors

Thanks to everyone who contributed to this release:

@yulman2207

Full changelog: v53.5.5...v53.5.6

20 days ago
plate

v53.5.5

@platejs/docx-io

Patch Changes

  • #5333 by @zbeyens –
    • Stop writing an extra blank paragraph after each image, and after any other void element, when exporting to DOCX.

Contributors

Thanks to everyone who contributed to this release:

@zbeyens

Full changelog: v53.5.4...v53.5.5

20 days ago
plate

v53.5.4

@platejs/docx-io

Patch Changes

  • #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.

@platejs/ai

Patch Changes

  • Updated @platejs/markdown.

@platejs/markdown

Patch Changes

  • #5328 by @yulman2207 –

    • Read CRLF and CR line endings in deserializeMd input as LF, so the value and the serializeMd output match the LF version of the same Markdown. Before, CRLF input kept \r at the end of code lines, paragraph and list lines, inline code and math, and the serialized output mixed line endings.
  • #5329 by @yulman2207 –

    • Fix deserializeMd dropping a soft line break after a link, mark or inline code, which joined the words on either side of the break.

Contributors

Thanks to everyone who contributed to this release:

@yulman2207, @zbeyens

Full changelog: v53.5.3...v53.5.4

25 days ago
plate

v53.5.2

@platejs/core

Patch Changes

  • #5325 by @dylans –
    • Fix useElement and usePath re-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.

@platejs/utils

Patch Changes

  • Updated @platejs/core.

platejs

Patch Changes

  • Updated @platejs/core, @platejs/utils.

Contributors

Thanks to everyone who contributed to this release:

@dylans

Full changelog: v53.5.1...v53.5.2

2026-10-22 17:34:01
plate

v53.5.1

@platejs/docx-io

Patch Changes

  • #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.

Contributors

Thanks to everyone who contributed to this release:

@yulman2207

Full changelog: v53.5.0...v53.5.1

2026-10-22 07:36:11
plate

v53.5.0

@platejs/docx-io

Minor Changes

  • #5233 by @vincent69001 –
    • Add paragraphSpacing and headingSpacing to exportToDocx, exportEditorToDocx, editor.api.docxExport.exportToBlob, editor.tf.docxExport.exportAndDownload and htmlToDocxBlob to set the space Word adds around paragraphs and headings, in twentieths of a point. Without them the file is unchanged.

Contributors

Thanks to everyone who contributed to this release:

@vincent69001

Full changelog: v53.4.0...v53.5.0

2026-10-19 21:56:33
plate

v53.4.0

@platejs/docx-io

Minor Changes

  • #5193 by @vincent69001 –
    • Add pageNumber to exportToDocx, exportEditorToDocx, editor.api.docxExport.exportToBlob and editor.tf.docxExport.exportAndDownload to number the pages in a footer.

Contributors

Thanks to everyone who contributed to this release:

@vincent69001

Full changelog: v53.3.18...v53.4.0