Releases

RSS

Latest updates and announcements.

v54.0.0-beta.5

platejs

Bug Fixes

    • 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. (dee395d)
    • 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. (dca432b)
    • Fix the ink layer holding the outline of each removed pen mark in memory while undo history can still restore that mark (d2af1ef)
    • Fix Markdown copied from VS Code pasting as a Markdown code block; it now pastes as headings, lists and marks (4081ba8)
  • 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

Bug Fixes

    • 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. (dee395d)

@platejs/test

Bug Fixes

    • 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. (8bee987)

CHANGELOG · v54.0.0-beta.4...v54.0.0-beta.5 · By @zbeyens

Show a split answer in the field demo refusals
behavior
field-demo

Show an answer-conflict refusal with the field name and the labels of its fields, when the fields of one name hold different answers.

  • Update the copied field-demo, because FieldRefusal gains answer-conflict, which lists fieldIds instead of one fieldId.

Plate UI

Warn on fields of one name that differ in settings or in answers
behavior
field

Show a warning on each chip of a name whose fields differ in kind, options or condition, and on each chip of a name whose fields hold different answers.

  • Update the copied field component, because FieldProblem gains name-conflict and answer-conflict and a Record<FieldProblem, string> needs both keys.

Plate UI

Name a field in its settings and name the lease's fields
new
field

Add a Name input to the field settings. It keeps what you type and writes the name on blur, on Enter or when the settings close, and removes the name when emptied. A name the rule refuses, such as one with a space at either end or a tab, stays in the input with an error, and the settings stay open until it changes. The Show when list shows each named field's name beside its label, and an answer the editor refuses shows Not saved.

  • Update platejs with the copied field component, because its Name input writes the field's name, which older versions refuse.
behavior
field-demo

Name every field of the lease, and ask for the tenant's name again beside the tenant's signature, so typing it in one place fills the other.

  • Update platejs with the copied lease value, because every field in it now has a name, which older versions refuse on load.

Plate UI

Pick the highlighter, the eraser or the lasso from the Draw button, and hide all ink
new
draw-toolbar-button

Turn Draw into a split button whose menu picks the pen, the highlighter, the eraser or the lasso, and whose main part turns Draw on with the last tool picked or off.

new
ink-switch-toolbar-button

Add a toolbar toggle that hides or shows every ink mark and sign, with Draw on or off.

behavior
ink-demo

Show the ink tools and the ink switch in the demo toolbar.

Plate UI

Color the editor with editor-primary, which follows the app's primary color
rename
plate-uieditordndmathmath-statictablecode-block-codemirror

The editor's selection, block selection, drop line and focus ring, the inline equation and table cell highlights, and the code block selection use the Tailwind color editor-primary instead of brand. The text caret outside code blocks uses editor-primary instead of primary, and so do the hover and selected highlights of block equations, live and static. plate-ui adds --color-editor-primary: var(--editor-primary, var(--primary)) to your theme, so the editor follows your shadcn --primary until you set --editor-primary. Plate no longer reads --brand.

  • Components you copied before this change still read brand. Add each of them again with shadcn add --overwrite, which replaces any edits you made to those files. Plate no longer reads --brand or --color-brand, but your own components or stylesheets may, so keep both while anything in your app reads them. To give the editor a color apart from --primary, set --editor-primary in a :root rule of your own, and in .dark for a separate dark value.
behavior
editor

Editor sets the caret and text selection colors instead of EditorContainer, so an editor rendered without the container keeps them.

  • A caret color or selection: class you set on EditorContainer no longer reaches the text. Set it on Editor instead.
behavior
comment

The Send button of a comment being edited uses your primary button colors, and its Cancel button uses your muted colors.

behavior
suggestion-toolbar-button

The suggesting button shows its on state as a pressed toolbar button.

Plate UI

Show field answers in static output and submit a role's answers in the field demo
behavior
field-static

Show each field's answer in place: a choice as its option's label, a checkbox as a ticked or empty box and a number as written, 0 included. Any field other than a checkbox shows a blank line instead of its label when it has no filled answer. HTML, Word and plain-text export still write their own text, such as an unanswered field's label in brackets.

new
field

Mute a chip and mark it skipped while its field's condition fails, so a person sees which answers the form does not need.

new
field-demo

The landlord now answers whether pets are allowed. The tenant's pet name is required when pets are allowed and skipped when they are not. Submit checks the current role's answers with applyFieldValues, after the answers of the roles that submitted before it, and shows the refusals or the static output of the filled document. A role's submitted answers count while the template and that role's answers still match what was checked. They stop counting once an earlier role's answers do. When they stop counting, a role whose field depends on them is refused as waiting until the role that gave them submits again. A result stays on screen only until the document changes.

Plate UI

Dock the floating toolbar above the keyboard on touch screens
behavior
floating-toolbar

On a screen whose primary pointer is coarse, such as a phone or tablet, render the toolbar as a bar above the on-screen keyboard while the editor has focus, so it no longer covers the phone's own selection menu. The bar scrolls the caret above itself when it would cover it. Mouse and trackpad screens keep the floating toolbar.

Plate UI

Export the board as a PNG or an SVG
new
board

Add an Export menu to the board toolbar that saves the board, or its selected shapes, as board.png or board.svg, or copies it to the clipboard as a PNG or as SVG text. Add board-static.tsx, whose BoardPictureKit draws each shape in the picture. The menu shows its notices for images, fonts and shapes the picture could not draw, and for an empty board, through sonner. When you update a copied board, copy board-static.tsx and the static items it imports, add the sonner dependency, and mount one <Toaster /> in your app.

behavior
block-list-static

Draw a task's checkbox with your registry style's checkbox classes, so a picture or static render of a task list draws the checkbox the editor draws.

wiring
html-export

Copy your page's body classes onto the exported document, so a style your CSS scopes under a body class draws in the preview and the saved file. Keep the document's doctype, so the saved file renders in standards mode.

Plate UI

Warn on a loop of field conditions and offer no condition that closes one
behavior
field

Show a warning on each chip of a loop of conditions, such as A naming B while B names A. The Show when list offers no field whose conditions lead back to the field being edited, and keeps the field its condition already names. Always clears the condition even when a field has an empty id.

  • Update the copied field component, because FieldProblem gains condition-loop and a Record<FieldProblem, string> needs that key.

Plate UI

Fill a field template as one role through the field chips
new
field

While FieldPlugin's fillRole names a role, each chip shows its field's answer, or its label when it has none. A choice shows its option's label, and a checkbox shows a ticked or empty box. The role's own chip opens a popover with an input for the answer and a Clear button, and the role's checkbox ticks and unticks on click. Another role's chip opens nothing. The role's chip whose answer holds a pending suggestion says it waits for review and opens nothing until someone accepts or rejects it. When an answer is not stored, as when the editor refuses it or another author proposed deleting the field, the popover says "Not saved." and the input shows the stored answer. A refused checkbox says "Not saved." beside its chip. No chip drags, and an open popover closes when the role changes or the editor turns read-only.

fix
field

Keep the caret and the typed spelling, such as 1.0, in a field's inputs while the change lands. Keep a number or date typed in part in its input without writing it, -0 included, so the stored answer, default or compared value stays until the entry is complete. Drop that entry from the input once the input loses focus. Unset an answer or default when its input is emptied. Keep a condition's compared value when its input is emptied, unless it compares text, which then compares with the empty string. Offer no None for a condition's compared choice. Show a newer answer that arrives while its input has focus, and drop a partial entry when the field's kind changes. Let a choice option whose value is the empty string be picked, apart from None. Render the chip itself as its popover's trigger, so the Base UI install no longer puts one button inside another.

behavior
field-toolbar-button

Disable the insert menu while FieldPlugin's fillRole names a role, and close an open menu when the role changes or the editor turns read-only.

new
field-demo

Add a switch between Author, Fill as landlord and Fill as tenant, which sets FieldPlugin's fillRole.

Plate UI

Focus a footnote definition created from its reference
fix
footnote

Focus the new definition when Create definition in a reference's hover card, or a Cmd-click or Ctrl-click on an unresolved reference, adds it. Before, the caret stayed outside an editor that had no focus, and the next typing was lost.

Plate UI

Keep a Markdown file's raw HTML and comments
wiring
markdown

Install RawHtmlPlugin beside MarkdownPlugin. Raw HTML in a Markdown file, such as a README's centered header, now saves back as HTML when its block passes Plate's safety check, instead of as escaped text. Most HTML comments on lines of their own, such as <!-- markdownlint-disable -->, save back instead of dropping when they sit in the document, a block quote or a list item.

  • Upgrade platejs to a release that exports RawHtmlPlugin from platejs/markdown before you copy the new kit.
  • If your editor builds its own plugin list instead of using MarkdownKit, add RawHtmlPlugin from platejs/markdown beside MarkdownPlugin.
  • A document the kit saves can hold the rawHtml mark, so add RawHtmlPlugin to every other editor that opens it, such as a server renderer.
  • RawHtmlPlugin changes the kit's schema fingerprint. If your app saves documents under a named schema, increment its version, add a migration step that returns the document unchanged, and register the earlier version's fingerprint in sourceFingerprints, as the Document migrations section of the editor guide shows.
  • The new kit refuses to join a Yjs room that the earlier kit created, with Yjs schema mismatch, or Yjs derived schema mismatch when your app declares no schema. Move each room's document to a new room. Under a named schema, migrate it as the Yjs rooms section of the board guide shows. Under the default derived identity, seed the new room with the document that an editor with the earlier kit reads.
  • If your app saves { document, schema } under the default derived identity, the new fingerprint no longer matches the saved one. Load each saved document in an editor with the earlier kit and pass its read.value() to the new editor.
  • Undo history that your app saved with the earlier kit no longer loads, and History.fromJSON throws History schema mismatch. Discard that history, or migrate it offline before the new kit loads it.
  • If your app already declares its own rawHtml mark, keep that plugin and leave RawHtmlPlugin out of the kit, because two plugins cannot own one mark.

Plate UI

Show a suggestion card's replacements and format changes once
fix
discussion

Show one Replace line for a deletion and the insertion that replaces it, even across a link's edge or two edits. Show one line for a format change the card repeats, read a deletion inside a block the card also deletes in that block's line, and update an open suggestion card when the text beside it changes.

Plate UI

Fix new comment focus, comment button alignment and suggestion card decisions
fix
discussion

Focus the new comment when Cmd+Shift+M opens it on text whose discussion cards are open, so typing goes to the comment instead of replacing the selected text.

fix
discussion

List each property change of a suggestion once, even after typing splits the formatted text. Disable the card's Accept, Reject and related buttons while the editor is read-only.

fix
comment

Put the actions of a new comment and of a comment edit in the field's row as 24 px buttons, so they share one height and one center line.

Plate UI

Editor UI follows shadcn create's base color and Tailwind prefix
fix
toctoc-staticselect-editormathmath-static

Fix gray text and tints that ignored the base color picked in shadcn create. The empty table of contents, the new-label value and the empty equation now use theme colors.

fix
dndtable-static

Fix the nested block gutter and the static table cell borders in projects with a Tailwind prefix. The CLI now prefixes their classes.

Plate UI

Fix the turn-into label in code blocks and add comments to two demos
fix
turn-into-toolbar-button

Fix the button label, which read Text instead of Code with the caret in a code block.

fix
floating-toolbar-demo

Add the discussion kit, so the floating toolbar shows the Comment button its text describes.

behavior
demo

Install the playground demo, whose document shows its suggestion marks and starter comments.

Plate UI

Add fields that one role fills, with an insert menu, a settings popover and a lease example
new
field

Add FieldKit, which installs FieldPlugin with FieldElement. The chip shows a field's label, an asterisk when it is required, its role, and a warning when useFieldRead reports a problem, such as a condition whose field was deleted. A click opens a popover for the field's label, kind, role, required flag, default, choice options and a Show when condition on another field. The role input offers the roles the document's fields already use. Installing field also installs field-toolbar-button.

new
field-static

Add BaseFieldKit, which renders each field's answer, a choice as its option's label, or the field's label when it has no answer.

new
field-toolbar-button

Add FieldToolbarButton, a menu that inserts a text, number, date, checkbox, choice or signature field. A new field takes the role of the document's first field, or signer in a document with no field.

new
field-demo

Add an example of a lease template for a landlord and a tenant, with a fee table, that shows its HTML, its Markdown and what Word export drops.

Plate UI

Disable the Turn into and Insert items the caret's parent cannot hold
behavior
turn-into-toolbar-buttoninsert-toolbar-button

Disable each item the caret's parent cannot hold, read through editor.read.schema.canPlace and, for the heading levels, BaseHeadingPlugin's read.canSetLevel. With the caret in a board note, Turn into disables Quote, Details, Code and 3 columns, and Insert disables Table, Code, Quote, Divider and the other blocks a note cannot hold, while Text, Paragraph, the headings and the lists stay enabled. Over page text every item stays enabled.

Plate UI

Add a chat message field that holds @ chips
new
prompt-editorprompt-editor-demo

Add PromptEditor, a message field for a chat form that takes the place of a text area. Typing @ opens a menu of the app's items, and a picked item becomes a chip. Enter presses the form's Send button and does nothing while that button is disabled, Shift+Enter breaks the line, and Enter while an input method composes sends nothing. The message is the typed text with each chip as <mention ref="…">label</mention>, read through value and onChange or under name in the form's data. A pasted or dropped file goes to onFiles and never into the text. The demo is a chat form that sends through the AI SDK.

Plate UI

Keep every line of an AI comment's quote that opens like front matter
fix
use-chat

Read an AI comment's quote with parseSlice, so a quote that opens with a --- line keeps every line in the comment's excerpt now that a document parse reads a leading front matter block. A schema whose first block must be a heading no longer gives the excerpt a leading empty line.

Plate UI

Add an image button to the board toolbar
new
board

Add an image button at the end of the board toolbar's tools. It opens a file picker for pictures and uploads each picked file as an image shape, in a row centered on the view. The button is disabled on a board that takes no picture files, such as a read-only board or an editor without upload or without BoardImageKit. The board now depends on use-file-picker.

fix
board

Fix the board toolbar cutting off its end buttons on a narrow board. A group wider than the board now wraps its buttons, so a phone shows every control. The tool lock moves into the tools group, before the image button.

Plate UI

Show the floating toolbar, link toolbar and AI menu where the caret is
behavior
floating-toolbarlinkai

The floating toolbar, the link toolbar and the AI menu render in the new caret slot, so they follow the caret into a board note inside the page and act on the note. A toolbar of another EditorContent, such as a header, stays on its own content while the caret is in the body or its note. In a note, the floating toolbar now shows the same buttons as on the page.

Plate UI

Color code blocks through one set of syntax CSS variables
behavior
code-blockcode-block-staticcode-syntax-style

Color highlighted code through --syntax-* CSS variables with light and dark values, such as --syntax-keyword and --syntax-string, which the new code-syntax-style item adds to your stylesheet. Change a variable once to restyle the editor, the CodeMirror view and static output. Built-in names such as Python's str now take the built-in color, and language names such as console and this, template tags and template variables take the keyword color. Every syntax color reads at a contrast of 4.5:1 or more on the code block in light and dark mode, and Markdown list bullets get their own dark color.

  • Copying the new code-block or code-block-static by hand also needs the code-syntax-style variables in your stylesheet; the shadcn CLI adds them.
fix
docx-export

Fix Word export code colors that differed from the editor. Code in a Word file uses the light values of the syntax variables, including the diff background colors and the comment color for inline code in Markdown. Every code color reads at a contrast of 4.5:1 or more on the gray code background.

Plate UI

Add line moves, a comment toggle and bracket keys to the CodeMirror code block
new
code-block-codemirror

Add CodeMirror's line, comment and bracket keys. Alt+Up and Alt+Down move the current line, and Shift+Alt+Up and Shift+Alt+Down copy it. Mod+/ toggles a line comment in the block's language. Shift+Mod+\ moves the caret to the matching bracket, and CodeMirror highlights the bracket pair beside the caret. A typed bracket or quote inserts its closer, and Backspace between an empty pair deletes both. Plate's history records each of these edits, so Mod+Z undoes it. The component imports @codemirror/autocomplete.

Plate UI

Drop the EditorSelectionView wrapper from the toolbars and the AI menu
fix
fixed-toolbarfloating-toolbarai-menucomment-toolbar-button

Drop the EditorSelectionView wrapper, which platejs/react no longer exports. The fixed toolbar already acts on the root that holds the caret, and the floating toolbar and the AI menu render in the caret slot, so they act on a board note's text without it. Over note text, the floating toolbar shows the same buttons as over page text.

Plate UI

Keep a sticky header over the editor above the editor's overlays
behavior
editor

Give EditorContainer its own stacking context with isolate, so page chrome that sits over the editor, such as a sticky header, stays above ink and every popup inside the container that is not portaled. Such a popup no longer paints over a positioned element that comes after the container.

Plate UI

Read CJK bold, italic and strikethrough that end in punctuation
wiring
markdown

Add remark-cjk-friendly and remark-cjk-friendly-gfm-strikethrough after remark-gfm. Bold, strikethrough and * italic that end in Chinese, Japanese or Korean punctuation right before the next word now read as formatting, not as literal asterisks and tildes. Bold and strikethrough also export without character references.

  • If you set your own remarkPlugins, add remarkCjkFriendly from remark-cjk-friendly/bidi and remarkCjkFriendlyGfmStrikethrough from remark-cjk-friendly-gfm-strikethrough/bidi after remarkGfm.
wiring
markdown-to-editor-demo

Add remark-cjk-friendly and remark-cjk-friendly-gfm-strikethrough to the demo's dependencies.

Plate UI

Keep Undo, Redo and Mode on the editor root while the caret is in a nested editing area
behavior
fixed-toolbarhistory-toolbar-button

Undo and Redo call useEditorHistory() with no editor, so they run through the editor root instead of the editing area that holds the caret. With the caret in a read-only note they stay in the toolbar and undo a page edit. The toolbar hides them only while the editor root is in Viewing. They refuse to undo an edit made in a note that was locked afterward, as the keyboard shortcut does.

behavior
mode-toolbar-button

Viewing chosen while no EditorContent is mounted now puts the editor root in Viewing through setEditorViewing, so choosing Editing after an EditorContent mounts makes it writable again. Under an EditorProvider that holds an editor view, Viewing writes that view's Mode, and Editing also clears the view's own lock.

Plate UI

Fix All comments after you edit a board note
fix
comment-toolbar-button

Fix All comments marking page comments as unavailable after you edit a board note or another nested root. The dialog reads every comment through the page, in the preview you see.

Plate UI

Put pictures on the board
new
board

Add BoardImageKit, an image shape that draws its picture and alt text across its box without stretching it. Add it beside BoardKit in an editor that installs the image plugin. Paste an image link, or a picture copied from a web page, on the board, and it lands at the pointer at its own proportions, which every resize keeps. Enter and a double-click keep an image shape selected and put no caret in it.

wiring
board-demoboard-page-demo

Add BoardImageKit, and install ImagePlugin in the board page demo, so a pasted image link lands on both boards.

Plate UI

Switch Viewing for the whole editor root
behavior
mode-toolbar-button

Viewing now turns every part of the editor root read-only, board notes included, through setEditorViewing. A read-only note no longer shows the button as Viewing while the page around it stays writable. When the toolbar controls no editing area, such as under EditorProvider or while no EditorContent is mounted, Viewing still locks the editor.

Plate UI

Hide the comment and lint popovers whose text scrolls out of the editor
behavior
discussion

Hide the comment popover once none of its lines is in the editor's visible area, and show it again when they scroll back. A comment box someone types in or presses a button in, and a new comment waiting for its box, stay shown.

behavior
lint

Hide the lint popover once its finding leaves the editor's visible area, and show it again when the finding scrolls back.

behavior
floating-popover

Take anchorHidden on FloatingPopoverContent, which hides the open popover and lets clicks reach the page under it without closing it.

new
use-visible-anchor

Build a popover anchor from boxes you measure, and read hidden, which turns true once none of them is in the editor's visible area.

Plate UI

Mirror the editor UI in right-to-left text
behavior
ai-menualign-toolbar-buttonblock-listblock-list-staticblockquoteblockquote-staticboardcalloutcallout-staticcode-blockcode-block-staticcolumncolumn-staticcommentcomment-toolbar-buttondetailsdiscussiondndemoji-pickerfindfont-color-toolbar-buttonhistory-toolbar-buttonindent-toolbar-buttonink-sign-buttoninsert-toolbar-buttonline-height-toolbar-buttonlinkmathmath-staticmedia-embedmedia-preview-dialogmedia-toolbarmedia-videomode-toolbar-buttonremote-cursor-overlaysettings-dialogslashsuggestiontabletable-statictable-toolbar-buttontoctoc-statictoolbarturn-into-toolbar-buttonupload

Mirror the editor UI in right-to-left text

behavior
dndtable

Open the block handle menu and the cell borders menu on the mirrored side in right-to-left text

behavior
table

Point Left Border and Right Border at the side they name in right-to-left tables

behavior
column

Move a column toward the side its menu item names in right-to-left text

behavior
detailshistory-toolbar-buttonindent-toolbar-buttoninsert-toolbar-buttonmathmedia-preview-dialogslashtabletable-toolbar-buttonturn-into-toolbar-button

Mirror directional icons where their toolbar, menu or text runs right-to-left

behavior
mathmath-static

Render equations and their TeX source left-to-right in right-to-left text

behavior
emoji-pickerfont-color-toolbar-buttontable-toolbar-button

Move through emoji, color and table size grids in the arrow key's visual direction

behavior
tabletable-static

Render a table's leading margin on its start side

behavior
rtl-demo

Add an example that switches between Arabic, English and Hebrew, each in its own direction

Plate UI

Place media by its alignment in right-to-left text
behavior
captioncaption-staticresize-handle

Place media aligned start or end on the text's start or end side, and keep media aligned left or right on that side in any direction

behavior
media-embed-staticmedia-image-static

Center an unaligned image or embed in static rendering, as the editor does

behavior
media-filemedia-file-static

Align a file's caption to the text's start side

behavior
resize-handle

Keep each resize handle on its own side in right-to-left text, with arrow keys that follow the text direction

Plate UI

AI menu acts on board note text
behavior
ai-menu

Open under selected board note text and offer the selection commands. An accepted edit changes the note, not the page text at the same path. When a change replaces the block the menu sits beside, the menu moves to the block that now holds the selection.

behavior
floating-toolbar

Show Ask AI over selected board note text.

behavior
board-demo

Open with a short quote, then the intro paragraph right before the board.

Plate UI

In All comments, a suggestion's thread says what the review did with the suggestion: Suggestion accepted, Suggestion rejected, Suggestion accepted and rejected, or Suggestion deleted, also after a reload. Show in document opens only a suggestion that is still pending, and not while a preview shows the document.
behavior
comment-toolbar-button

In All comments, a suggestion's thread says what the review did with the suggestion: Suggestion accepted, Suggestion rejected, Suggestion accepted and rejected, or Suggestion deleted, also after a reload. Show in document opens only a suggestion that is still pending, and not while a preview shows the document.

Plate UI

Comment on board note text
behavior
comment-toolbar-button

In All comments, Show in document on a thread in a board note selects the note text, not the page text at the same path, and leaves focus in the note.

fix
comment-toolbar-button

Fix Show in document leaving focus on the All comments button in an editable view, throwing in a read-only view, dropping the selection after a quick click in a read-only view, and selecting the wrong text in an Accepted preview that hides a suggestion before the thread.

fix
discussion

Fix Escape or Cancel in a new comment on board note text moving focus to the page. Focus goes back to the note.

behavior
board-demo

Add comments and discussions, so a note's text takes comments like the page text.

Plate UI

Hide popups and remote carets whose text scrolls out of the editor
behavior
use-floating-rect

Take the whole RangeGeometry, hide the popup once no line of its text is in the editor's visible area, and return shown, which says whether the popup is drawn. Pass hideWhenClipped: false to keep a popup shown, such as a form someone is typing in.

  • Pass the whole geometry from useSelectionGeometry in place of geometry.boundingRect.
  • Read shown in place of isPositioned, and spread style in place of floatingStyles.
behavior
floating-toolbar

Hide the floating toolbar once its selection leaves the editor's visible area, including when the editor scrolls itself or the toolbar sits outside the box that scrolls the text.

behavior
link

Hide the link popovers once the cursor or selected text they point to leaves the editor's visible area. An open link form stays shown, so typing still goes into it while its text is out of view.

behavior
remote-cursor-overlay

Draw a collaborator's caret and name label only inside the editor's visible area, and put the label below its caret when it does not fit above.

  • Read the name label from [data-remote-cursor-label] beside the caret, not inside [data-remote-caret]. Both now sit in one [data-remote-cursor-clip] box.

Plate UI

Use the radix-ui package in Radix projects
wiring
toolbarfloating-popover

Import Radix's toolbar and popover from the radix-ui package that shadcn's own Radix components use, so installing them in a Radix project no longer adds @radix-ui/react-toolbar or @radix-ui/react-popover.

Plate UI

Write registry icons as JSX elements
behavior
dndtablecolumnalign-toolbar-buttonboarddiscussion

Render each icon as a JSX element instead of passing an icon component, and type HandleActionsMenu's action icon as a React node.

  • Pass each HandleActionsMenu action icon as an element, such as icon: <ArrowUpIcon /> instead of icon: ArrowUpIcon.

Plate UI

Install icons from the project's icon library
behavior
ai-menualign-toolbar-buttonblock-list-staticboardclear-formatting-toolbar-buttoncode-blockcode-block-diagramcollaboration-democolumncommentcomment-toolbar-buttondetailsdetails-toolbar-buttondiscussiondndemoji-pickeremoji-toolbar-buttonequation-toolbar-buttonexport-toolbar-buttonfindfixed-toolbarfloating-toolbarfont-color-toolbar-buttonfont-size-toolbar-buttonformat-painter-toolbar-buttonhistory-toolbar-buttonimport-toolbar-buttonindent-toolbar-buttoninsert-toolbar-buttonline-height-toolbar-buttonlinklink-toolbar-buttonlist-toolbar-buttonmarkdown-streaming-demomathmath-staticmedia-filemedia-file-staticmedia-preview-dialogmedia-toolbarmedia-toolbar-buttonmode-toolbar-buttonmore-toolbar-buttonselect-editorselect-editor-demosettings-dialogslashsuggestion-toolbar-buttontabletable-toolbar-buttontoolbarturn-into-toolbar-buttonupload

Install each icon from the project's icon library, Lucide, Tabler, Hugeicons, Phosphor or Remix, instead of always adding lucide-react. The default, new-york and new-york-v4 styles keep Lucide icons.

Plate UI

Let apps add their own slash menu items
new
slashslash-command-items-demo

Add app items to the slash menu through SlashPlugin.configure({ initialState: { items } }); each item joins the group it names, or starts a new group after the built-in ones.

Plate UI

Suggesting adds or deletes a whole table: its cells tint instead of showing a bar beside each one, and the refusal toast names what still refuses in a table: its rows, columns, cells and sizes, a block that holds a table, and a table that holds a code block.
behavior
suggestion

Suggesting adds or deletes a whole table: its cells tint instead of showing a bar beside each one, and the refusal toast names what still refuses in a table: its rows, columns, cells and sizes, a block that holds a table, and a table that holds a code block.

Plate UI

Toolbars act on board note text
behavior
floating-toolbar

Open beside selected board note text. In a note it shows the mark buttons and Comment.

  • FloatingToolbar reads its Editable from useEditableRef() and no longer takes an editableRef prop. Render it from a slot as afterEditable: () => <FloatingToolbar />.
behavior
fixed-toolbar

Apply the mark, color, highlight and comment buttons to board note text when the selection is in a note. Undo, Insert, Turn into, All comments and Mode keep acting on the page.

Plate UI

Write AI comments and suggestions under the AI's own name
behavior
use-chatcommentai-apieditor-aiai-demodiscussion-demoplayground-demo

Write AI comments and suggestions under the AI's own name. use-chat exports aiUser, sets authorId: aiUser.id on AIChatTransportPlugin, creates each generated comment as aiUser with data.requestedBy naming the editor's user and data.model naming the model the route streamed with it, and the editor and demos list aiUser among the comment users. comment lets the user in requestedBy resolve, reopen, edit and delete the AI's messages, and resolve and reopen stay with the thread's creator or that requester when its first message is removed.

  • List aiUser from use-chat among the CommentsPlugin users so AI comments show its name, and let your mutate adapter accept the AI's ID as an author for the users allowed to run AI.

Plate UI

Import cn from the cn package
wiring
ai-menublock-list-staticblock-listboardcallout-staticcaption-staticcaptioncode-block-diagramcode-blockcolumncomment-toolbar-buttoncommentdatedetails-staticdetailsdiffdndeditor-dropdown-menueditor-staticeditoremoji-pickerexcalidrawfixed-toolbarfloating-popoverfont-color-toolbar-buttonfont-size-toolbar-buttonfootnotehorizontal-rule-statichorizontal-ruleinline-comboboxlinkmarkdown-streaming-demomath-staticmathmedia-audiomedia-embedmedia-filemedia-image-staticmedia-imagemedia-preview-dialogmedia-videomention-staticmentionparagraph-staticparagraphpreview-markdown-demoresize-handleselect-editorsettings-dialogsuggestion-toolbar-buttontabbable-demotable-statictable-toolbar-buttontabletoolbarupload

Import cn from the cn package, which the shadcn CLI now installs with each item, instead of @/lib/utils.

Plate UI

Start a block drag from the page area that scrolls the editor
behavior
editor

Pass the editor's scroll element to NodeSelectionDrag as its container, so a block drag also starts from that element's blank space and from elements marked data-node-selection-start, such as a page cover, once the page registers its scroller with useEditorScrollElementRef.

Plate UI

Install Files SDK 3 with the upload kit and gateway
wiring
uploadupload-browserupload-r2upload-s3files-api

Install files-sdk 3.2.0, and answer an Invalid or Unsupported error from the access check with a 422 instead of a 500.

  • Update files-sdk to 3.2.0 or newer together with a copied lib/files.ts.

Plate UI

Add the format painter to the editor
new
format-paintereditor-plugins

Add FormatPainterKit, which installs the format painter with Mod+Alt+C to copy a look, Mod+Alt+V to paste it and Escape to put the brush down, and include it in the editor kit.

new
format-painter-toolbar-buttonfixed-toolbar

Add a paintbrush button to the fixed toolbar, next to the clear formatting button. A click paints once, a double click keeps painting until Escape, and a click on the armed button puts it down.

Plate UI

Use your project's toggle and tooltip in the toolbar
behavior
toolbar

Build toolbar buttons from your project's toggle and tooltip components, so the toolbar follows your edits to them and its tooltips look like the rest of your app, arrow and colors included.

fix
toolbar

Fix the split button's arrow half so it matches the main half's height and joins it on a square edge in every style.

fix
font-color-toolbar-button

Fix the color swatch tooltip trigger in Base UI projects.

Plate UI

Use only the caller's own AI Gateway key in the AI routes
fix
ai-apicopilot-api

Use only the AI Gateway key the caller sends as apiKey. A request without one gets a 401, even when the server sets AI_GATEWAY_API_KEY. To use a shared key, authenticate and authorize each request in your route and load the key on the server.

  • Send the caller's AI Gateway key as apiKey in the request body, or authorize each request and load a shared key on the server.

Plate UI

Add clear formatting to the editor
new
formattingeditor-plugins

Add FormattingKit, which installs clear formatting with the Mod+\ shortcut, and include it in the editor kit.

new
clear-formatting-toolbar-buttonfixed-toolbar

Add a clear formatting button to the fixed toolbar, next to the alignment button.

Plate UI

Save comment ranges with each document revision
wiring
import-toolbar-buttoncomment-persistence-demosuggestion-persistence-democomment-democomment-overlap-democomment-review-demoeditor-ai

Load comments as { threads, ranges } and save api.ranges() with each document revision. The DOCX import in import-toolbar-button returns plain ranges keyed by thread ID, and the persistence demos keep thread rows in an app table.

Plate UI

Drop the selector comparisons that Plate now makes by default
behavior
turn-into-toolbar-buttonfootnote

Drop the hand-written equalityFn from the turn-into menu's structure state and the footnote hover preview, because useEditorSelector now compares results by value. Both still skip renders while you type and still update after each change they show.

Plate UI

Label toolbar shortcuts for the user's platform
fix
mark-toolbar-button

Show the shortcut of the plugin the button toggles, so a rebound shortcut shows its new keys. After mount, the tooltip shows it as ⇧⌘X on Apple devices and Ctrl+Shift+X elsewhere, and the button sets aria-keyshortcuts. A disabled button shows no shortcut.

  • Remove keys written into a MarkToolbarButton tooltip, such as tooltip="Bold (⌘+B)", or the tooltip shows them twice.
fix
fixed-toolbarfloating-toolbarinstallation-next-02-marks-demoinstallation-next-03-elements-demoinstallation-next-demo

Show each mark button's shortcut for the user's platform instead of always ⌘. The fixed toolbar's Highlight button shows its BasicMarksKit shortcut, which it did not show before.

Plate UI

Rank slash and mention menu matches
behavior
inline-combobox

Add rankOptions(options, query), which keeps the options that match the query, best match first: an exact label or keyword, then a label that starts with the query, then a later label word, then a keyword or the group. Remove the value, keywords, group and label props from InlineComboboxItem and the filter prop from InlineCombobox; a menu ranks its own list and renders the result.

  • Rank each menu's list with rankOptions in a component rendered inside InlineCombobox, because useInlineComboboxQuery reads the query from it, and render the result; delete value, keywords, group and label from InlineComboboxItem and filter from InlineCombobox.
behavior
slash

Rank options while you type in one list without group headings, so /co picks Code Block and /bl picks Blockquote. Add the todo and codeblock keywords, and stop matching internal ids.

  • Delete value from your own items in groups, and give each item a label no other item uses, because the typed list keys items by label.
  • While a query is typed, rank the items of every group together in one list, so the best match comes first across groups.
behavior
mention

Rank names that start with the query first, so @as picks Asajj Ventress.

wiring
emojifootnote

Drop the filter={false} and item value props, which the combobox no longer reads.

Plate UI

Remove the docs registry items
remove
docsfumadocsdocs-meta

Remove the docs items, including each page's -docs item. Each platejs release ships docs for its version in node_modules/platejs/dist/docs/, so point your coding agent there.

Plate UI

Add a whiteboard block with notes, shapes, arrows, frames and pen lines
new
board

Add BoardKit, a whiteboard block with notes, geo shapes, arrows, frames and pen lines. Add it beside EditorKit. Its toolbar shows an icon for the select, hand, note, arrow, frame, pen and eraser tools, a shape menu of rectangle, ellipse, diamond and triangle, a lock button that keeps the drawing tool picked, zoom out, the zoom level as a percentage, zoom in and a button that fits every shape in view. A click on the zoom level goes back to 100%. A drag with the hand pans the board from any point, over shapes too, and shows an open hand. The eraser fades every note, shape, arrow and pen line a click or drag passes over to 30% and removes them when you let go, and never takes a frame. A shape with no fill and no label goes only where the eraser passes near its outline, so a pen line drawn inside an empty rectangle goes alone. With a frame selected, an icon removes the frame and keeps its shapes. BoardStylePanel docks at the board's top right with a row for each style the selected shapes take: shape, fill, outline color, line style, outline width and text size. A pick restyles the selected shapes and the shape you are typing in as one undo step. With a drawing tool picked, it styles the next shape. On a board narrower than 36rem the panel folds behind a Styles button. A pick keeps the caret, except in that folded panel, whose button moves focus into it. The copied board writes every word the board says in boardMessages, and the board tells screen readers the selected shape and its place, the picked tool, the zoom and how many shapes a removal took off. The board is one Tab stop. When it takes focus, screen readers read the keys in boardMessages.instructions, and the copied board draws a focus ring while no shape is selected. Command with an arrow on a Mac, or Control with an arrow elsewhere, selects the nearest shape in that direction. =, + and - zoom by steps, Shift+0 resets the zoom, Shift+1 fits every shape, H picks the hand, and PageUp and PageDown pan, sideways with Shift. With the note, shape or frame tool, Enter places that shape. Q or the toolbar's lock button turns on a tool lock that keeps the note, shape, frame or arrow tool picked after each shape it adds, and a second press turns it off. boardMessages.toolLock says each change. Command+D on a Mac, or Control+D elsewhere, copies the selected shapes 24px down and right, or further when another shape sits there, and selects the copies. With the arrow tool and one shape that is not an arrow selected, Enter starts an arrow from it, and Tab, or Command or Control with an arrow, aims at the other shape. The arrow keys then move the arrow's end, which binds to the shape under it other than the one its start binds to, to a frame only on its edge and to a pen line only on its line, and otherwise stays free. Enter then draws the arrow. With the arrow tool and nothing selected, Enter starts an arrow at the view's center. Its start binds to the shape under it that is not an arrow, to a frame only on its edge and to a pen line only on its line, and otherwise stays free, there and after each arrow key moves it. Tab, or Command or Control with an arrow, aims it at a shape. A second Enter keeps the start, and the end then moves the same way. boardMessages.starting, boardMessages.connecting, boardMessages.aim and boardMessages.free say each step, and starting names the shape the start binds to, or its point when it sits free. With one shape selected that is not an arrow, S resizes it from its bottom-right corner. Tab picks another corner, the arrow keys move the corner, Enter keeps the new size and Escape puts it back. boardMessages.resizing and boardMessages.resize name the corner and the size at each step. Space starts picking shapes: Tab, or Command or Control with an arrow, moves a dashed ring from shape to shape without changing the selection, Space adds the ringed shape to the selection or takes it out, and Enter or Escape keeps the selection. boardMessages.picking and boardMessages.pick say each step. Shift+Enter moves focus from the board to its toolbar, and Escape moves it back. A Yjs room created before the board refuses an editor with it, so seed a new room from the old room's document, as the Board docs page shows.

new
boardboard-page-demo

Add BoardPageKit, whose BoardPageElement draws a board that fills its container, for a page whose one block is a board. The board-page-demo example builds that page without EditorKit, whose drag handles and trailing paragraph would wrap and follow the board.

Plate UI

Close toolbar menus and popovers when the toolbar scrolls
fix
toolbareditor-dropdown-menufloating-popoverfont-size-toolbar-button

A menu or popover opened from the toolbar, such as Turn into, Align, the emoji picker or the font size list, now closes once a toolbar scroll hides more than half of its button. While at least half of the button stays in view, the menu stays open. Before, the menu stayed on screen after its button scrolled out of view. In the Base UI variant, a swipe that starts on the toolbar no longer closes the menu by itself. The menu closes only when that swipe's scroll hides more than half of its button. Closing on a scroll, or with a swipe that starts outside the menu and the toolbar, leaves focus where it is, so the toolbar does not scroll back. A font size you were still typing is not applied.

behavior
toolbar-overlay

ToolbarOverlayProvider now takes the toolbar's root element. The new useToolbarScrollDismiss(open, hostRef, closeWithoutFocus) calls closeWithoutFocus when a scroll of that toolbar leaves less than half of the element in hostRef visible. It counts only the part inside the toolbar, inside each ancestor whose overflow clips the toolbar, and inside the viewport. A host that was already more than half hidden when the overlay opened closes only once a scroll hides more of it. The hook returns that toolbar's element after the toolbar mounts, and null before then or outside a toolbar. The new isToolbarSwipe(toolbar, event) returns true for a touchmove or touchend that started inside that toolbar, so a Base UI adapter can cancel the dismissal that Base UI reports for it. Pass the toolbar's root element as element, or null outside a toolbar.

  • Pass the toolbar's root element to ToolbarOverlayProvider as element, or null outside a toolbar.

Plate UI

Remove the AI leaf from the AI kit
remove
ai

Remove AIPlugin and AILeaf from AIKit. A response shows only in the AI menu's draft until you accept it.

wiring
ai-menu

Draw the draft's end marker with a local aiPreviewEnd decoration plugin instead of the AI plugin.

Plate UI

Fix the link and equation popovers in a sandboxed frame
fix
link

Close the link form when focus moves into another iframe, also when the editor renders inside a frame sandboxed without allow-scripts.

fix
math

Select the equation's TeX when its popover opens, also when the editor renders inside a frame sandboxed without allow-scripts.

Plate UI

Keep a right-click from running the context menu item under the pointer
fix
editor-context-menu

In the Radix version, a right-click no longer runs the menu item that appears under the pointer as the menu opens. This happened most often near the bottom of the view, where the menu moves up to fit. Pressing the right button, moving onto an item and releasing still runs that item.

Plate UI

Apply the size picked from the font size list
fix
font-size-toolbar-button

A size picked from the font size field's list now applies to the selected text and returns focus to the editor, so the selection stays and the next keystrokes edit it at the new size. Before, the list closed on the press and nothing changed.

Plate UI

Keep suggestion styles on the lines of a paged editor
fix
suggestion

Keep suggested inserts and deletions styled in a paged editor, where each measured run of a text renders as its own [data-editor-text-piece] span. A copied kit needs [data-editor-text-piece] beside [data-editor-node=text] in its selectors.

Plate UI

Fix pagination demo lines overlapping in Firefox
fix
pagination-demo

Measure and paint paged text with named fonts, so lines in Firefox no longer wrap past their measured positions and overlap. In every browser, paged text, code and keyboard marks use named font stacks instead of the system and theme fonts, and headings use the page font instead of the heading font

Plate UI

Keep touch selection in block menu editors and open toolbar menus on tap
fix
block-menu

On a touch screen, a long press or a double tap in an editor with the block menu now keeps the browser's own word selection and its Copy menu. Before, a long press turned the paragraph into a block selection, and Paste then replaced the whole paragraph.

fix
editor-dropdown-menu

On a touch screen, a dropdown menu now opens on a tap, so a swipe that scrolls the toolbar no longer opens the menu of the button it starts on. A mouse press still opens the menu on press.

fix
toolbartoolbar-overlay

On a touch screen, a swipe that starts on a floating toolbar menu button no longer keeps the floating toolbar open after the editor loses its selection.

behavior
toolbar-overlay

useToolbarOverlayTrigger now returns { opening, cancelled } instead of one function. Call opening() where you called that function, and call cancelled() from the trigger's onPointerCancel.

  • Call opening() where you called the function useToolbarOverlayTrigger returned, and call cancelled() from the trigger's onPointerCancel.

Plate UI

Return to the editor after Enter in the font size field
fix
font-size-toolbar-button

Enter in the font size field now applies the size and returns focus to the editor, so the next keystrokes edit the text at the new size. Before, focus stayed in the field and the typed text went into it.

Plate UI

Keep the editor frame inside narrow layouts
fix
editor

EditorFrame now shrinks to fit a grid or flex layout narrower than its toolbar, and the fixed toolbar scrolls inside it. Before, the toolbar widened the frame and pushed the fields beside it past their container's edge.

Plate UI

Open floating toolbar menus in Safari
fix
floating-toolbar

The first click on More formatting or Turn into in the floating toolbar now opens its menu in Safari. Safari cleared the text selection when the menu took focus, which hid the toolbar and the menu with it.

Plate UI

Fix Edit link, saving an edited link, Open link and the link shortcut in the link toolbar
fix
link

Fill Text to display with the link's text in Edit link

fix
link

Show the link toolbar again after Enter saves an edited link

fix
link

Point Open link at the link under the caret when the caret moves straight into another link

fix
link

Close Edit link and Insert link and drop the draft when focus moves from the form to another element, the editor takes focus or a click lands outside, and show the link toolbar again while the caret stays in the link

fix
link

Keep Insert link and the formatting toolbar working after the link shortcut over a selection inside a link

Plate UI

Keep space above headings in Word export
behavior
docx-export

Add space above each heading in DOCX_EXPORT_STYLES, from 24pt for h1 down to 10pt for h6, because Word export now applies the stylesheet's block margins.

Plate UI

Keep the floating toolbar working while one of its menus closes
fix
floating-toolbareditor-dropdown-menu

A press on another floating toolbar button while one of its menus is open now works, so Bold marks the selected text and Turn into opens. The floating toolbar also stays visible while a press that closes its menu is held. A dropdown menu now keeps its toolbar open until focus settles after it closes.

  • Update floating-toolbar together with editor-dropdown-menu; an older floating toolbar closes its menus before they can record an outside press, so focus jumps back to the editor.
wiring
toolbar-overlaytoolbareditor-dropdown-menu

toolbar-overlay.tsx is now its own registry item, which both the toolbar and the dropdown menu install.

Plate UI

Build Date labels in the copied items
behavior
datedate-static

Build the date label in each copied component. date shows Today, Yesterday or Tomorrow for nearby days and the full date otherwise, such as March 23, 2026. date-static always prints the full date, so an export never says Today. Both print US English; edit the copied dateFormat and words to change it.

  • Update copied date and date-static components, because platejs/date no longer exports getDateDisplayLabel.

Plate UI

Keep the floating toolbar after closing More formatting
fix
more-toolbar-button

Keep the floating toolbar and the selected text when a second click on More formatting, or Escape, closes it.

wiring
editor-dropdown-menu

When a click outside a non-modal menu, a right-click outside any menu, Tab in a Base UI menu, or a focus move to another control closes a dropdown, focus stays where the user put it. It no longer moves back into the editor or, on Base UI, to the menu's trigger. This applies to every editor dropdown: More formatting, Turn into, font color, insert, mode, align, line height, list, export, import, media, comment, the table menus and the block drag handle menu. When an item moves focus itself, the menu leaves focus there. A menu that puts focus back in the editor after a close, such as More formatting, still does after a press on another button in its own toolbar. Base UI menus close without an exit animation, as Radix menus already do, so a click right after a close keeps its focus. The dropdown menu now also installs menu-close-focus.tsx, which holds the close-focus code both bases share.

Plate UI

Show saved point sizes in pixels in the font size control
fix
font-size-toolbar-button

Show a saved pt size in pixels and step from it, and show any other saved size, such as 1.2em, as saved without stepping it.

  • Reinstall font-size-toolbar-button, or replace its toUnitLess calls with a local parser, because platejs no longer exports toUnitLess.

Plate UI

Define the slash plugin in the copied slash file
behavior
slash

Define SlashPlugin in the copied file with the / trigger policy and the code-block check, and let each item return its command's result.

  • Import SlashPlugin from the copied slash file; Plate does not export it.
behavior
inline-combobox

Let InlineComboboxItem's onSelect return a command's true or false; only false keeps the query.

behavior
emojimentionfootnote

Type each popup's props with Plate's EditableSiblingProps.

Plate UI

Indent all six heading levels in the table of contents
behavior
toctoc-static

Indent all six heading levels in the table of contents

  • Read an entry's level instead of its depth and type in copied TOC code.
remove
toc-static

Remove TocElementDocx

  • Delete the TocElementDocx import and its toc override from your Word export kit; exportDocx draws the table of contents.

Plate UI

Read discussion cards and threads by block key, under a preview too
behavior
discussion

Read the target panel's cards and each block's thread count by the block's key, so under an accepted or proposed preview each paragraph shows only the cards of the content it shows. SuggestionDiscussionBlock takes blockKey and no blockIndex prop.

  • Remove the blockIndex prop from SuggestionDiscussionBlock and pass a block key to blockThreadCount, or re-copy discussion.tsx.
behavior
discussion

Under a preview, anchor the popover of a suggestion or a change thread on the paragraph whose trigger you pressed last, and open it only while that paragraph shows the thread.

behavior
discussion

Show a change's card in the popover when its thread opens on its own, such as from a list.

fix
suggestion

In Suggesting, say why the editor refused an edit beside content a pending join moves, instead of suggesting a switch to Editing.

Plate UI

Place all six alignments on media, clear line height from its toolbar, and rename the column group plugin
behavior
media-imagemedia-embedmedia-audiomedia-audio-staticmedia-videocaptioncaption-static

Place media aligned start or justify on the left and end on the right, instead of in the center.

behavior
line-height-toolbar-button

Add a Default item that clears line height, offer 1, 1.2, 1.5, 2 and 3, and check nothing when the selection mixes line heights.

fix
align-toolbar-button

Check nothing when the selection mixes alignments, instead of Left.

remove
line-heightalign

Configure only the target blocks. Every stored line height and alignment now draws.

  • Drop defaultNodeValue and validNodeValues from copied kits; platejs no longer accepts them.
behavior
font

Install FontColorPlugin without a black default, so pasted black text draws, including in dark mode.

rename
columncolumn-staticinsert-toolbar-buttonslashturn-into-toolbar-button

Use ColumnGroupPlugin and BaseColumnGroupPlugin for column groups.

  • Import ColumnGroupPlugin and BaseColumnGroupPlugin where the copied code imported ColumnPlugin and BaseColumnPlugin.

Plate UI

Import KaTeX in the copied equation components
behavior
mathmath-static

Import katex and katex/dist/katex.min.css directly.

behavior
equation-toolbar-buttoninsert-toolbar-buttonslash

Stop installing katex.

remove
math-static

Remove EquationElementDocx and InlineEquationElementDocx, which exportDocx does not use.

  • Delete imports of EquationElementDocx and InlineEquationElementDocx; exportDocx draws equations as Word math itself.
fix
html-export

Load the KaTeX 0.16.22 stylesheet, which matches the equations the copied math components draw.

Plate UI

Accept or reject every suggestion from the mode menu
new
mode-toolbar-button

Add Accept all suggestions and Reject all suggestions to the mode menu. Each decides every pending suggestion, from every author, in one step that one undo restores. Both stay disabled in Viewing mode and when nothing is pending.

Plate UI

Link footnotes on static pages and jump between them in read-only views
behavior
footnote

In a read-only view, a click or Enter on a footnote mark scrolls to its note and flashes it, and the note's back link jumps back to the mark, with focus on the control you land on. A back link of a note cited several times opens its picker with focus inside it. An unresolved mark does nothing in a read-only view.

behavior
footnote-static

Link each mark to its note and each note back to its first mark, with fnref- and fn- ids, so static pages and exported HTML keep working footnote links.

Plate UI

Draw diagrams in code blocks
new
code-block-diagramcode-block-diagram-mermaidcode-block-diagram-graphvizcode-block-diagram-flowchartcode-block-diagram-plantuml

Draw the picture of a code block in a diagram language below its source. withDiagrams wraps CodeBlockElement or CodeBlockCodeMirrorElement with the renderers you pass, the toolbar switches between Code and Both and exports a PNG, and the PlantUML renderer sends source only to the server you configure. The Mermaid renderer draws with Pele.

new
code-blockcode-block-codemirror

Add an addon prop that adds language options, toolbar controls and content around the source, so a wrapper such as withDiagrams extends the copied component without editing it.

remove
insert-toolbar-buttonslashindentindent-staticeditor-plugins-static

Remove the Code Drawing menu entries, indent target and static kit, and remove the code-drawing and code-drawing-static items and the code-drawing-demo example.

  • Replace the code-drawing items with code-block-diagram and a renderer item per engine; migrateV54 turns saved drawings into code blocks.

Plate UI

Show caret and block selection on void and media blocks
fix
code-drawingexcalidrawupload

Mark a block entered with the caret with a ring on code drawings and Excalidraw canvases and a tinted background on upload placeholders.

behavior
tocmathhorizontal-rulecode-drawingexcalidrawupload

Leave a block selection to the blue block highlight instead of adding the caret-entry style.

behavior
media-imagemedia-filemedia-audiomedia-videomedia-embed

Show the media ring and toolbar only when the media node is clicked or arrowed into; a block selection shows the blue block highlight instead, even when it holds only that media node.

behavior
mentiontagfootnote

Keep the inline focus style off mentions, tags and footnote references inside a block selection.

behavior
dndblock-menu

Turn a selected media node into a block selection when its drag handle is clicked or its block menu opens.

Plate UI

Convert Details titles without losing body content or list hierarchy
fix
turn-into-toolbar-button

Turn a Details title into a list item with its body one level under it, and disable Code when the selection holds the title and more blocks

behavior
indentindent-static

Indent audio, callout, code drawing, column group, equation, Excalidraw, file, horizontal rule, media embed, table of contents, upload and video blocks, so a Details body that holds them can become a list

Plate UI

Remove CsvPlugin from the editor kit
remove
editor-plugins

Remove CsvPlugin and its platejs/csv import from the editor kit, and remove the csv-demo example. Spreadsheet copies still paste as tables through HTML, and tab-separated text pasted onto selected table cells fills them field by field.

Plate UI

Show TOC selection instead of the active heading
behavior
toc

Remove the active-heading highlight and its scroll observer from TocElement, so every row keeps the same muted style. A selected TOC block gets the same tinted background as a selected block equation.

Plate UI

Preserve Details titles when applying heading formats
fix
detailsdetails-staticheadingheading-static

Render a Details title that has a heading level with that heading's style, and center its toggle on the title's first line at the heading's own font size

fix
turn-into-toolbar-buttonblock-menuslash

Format a Details title in place when choosing Text or a heading, instead of breaking the title or inserting into its hidden body, with or without the Heading plugin

fix
turn-into-toolbar-buttonblock-menu

Keep list formatting when the schema refuses a block format, drop the bullet when a bulleted heading takes its own level, and show an H4 to H6 as a heading instead of Text in the block menu

fix
font-size-toolbar-button

Show the heading size of a Details title that has a heading level

fix
toc

List each Details title that has a heading level, and open every Details around a heading or title that the jumping editor root shows collapsed before jumping to it

Plate UI

Size editor side padding to the editor's own width
fix
editoreditor-static

Size the side padding of the default, demo and fullWidth variants to the editor's own width instead of the viewport. Padding shrinks to 24 px in a narrow editor, except that editor keeps at least 52 px at the end, so a block discussion button fits. Editors at least 512 px wide, or 640 px for fullWidth, keep their current padding.

fix
comment-democomment-overlap-democomment-persistence-democomment-review-demosuggestion-demosuggestion-format-demosuggestion-persistence-demosuggestion-view-demo

Size the editor's start padding to its own width instead of the viewport, and keep 52 px at the end, so a block discussion button fits. The start padding shrinks to 24 px in a narrow editor, and editors at least 600 px wide keep 48 px.

Plate UI

Lint text blocks with your own rules and fix findings from a caret popover
new
lint

Add LintKit, which configures BaseLintPlugin with two example rules that skip code blocks, wavy underlines by severity, and F8 and Shift+F8 to select the next and previous finding. LintPopover shows the finding under the caret with its fixes and Fix and next. useLintFindings and useLintFindingAt read the findings for your own UI.

fix
lint-demo

Add a lint example with a findings panel that runs, clears and applies the first fix, and a Check with server button backed by a stand-in rule that answers after 600 ms.

Plate UI

Keep empty media captions hidden on select, restore image preview and add the media toolbar to file, audio and video
behavior
captionmedia-imagemedia-audiomedia-embedmedia-filemedia-video

Keep an empty caption hidden while its media is selected, so selecting media no longer shifts the page. The caption shows once the caret enters it, such as through the media toolbar's Caption button, and Caption no longer takes an active prop.

  • Remove the active prop from Caption; it shows an empty caption only while the caret is inside it.
fix
media-imagemedia-preview-dialog

Open the image preview on double-click again; api.preview.open takes the image's path and URL. The preview renders above the page, centers the image, and closes on a backdrop click or Escape.

  • Call imagePlugin api.preview.open with the image's path and URL instead of the element.
behavior
media-filemedia-audiomedia-videomedia-imagemedia-toolbar

Select a file on click in an editable editor and open it on double-click. Show the media toolbar with Preview, Caption and delete while a file, audio or video node is selected. The image toolbar also gets Preview, which opens the image preview. The file and audio toolbars sit above their block, so neither covers the next block, and the audio selection ring fits the player. File and audio blocks get vertical padding so a selection ring does not overlap the block next to it, and a click in that padding selects the block instead of opening its caption. A click on an audio or video player selects that node and returns the keyboard to the editor, and Preview no longer keeps focus, so arrow keys keep moving the selection.

Plate UI

Read-only previews and HTML export create their editor with createEditor or useCreateEditor
wiring
commentcomment-review-demomarkdown-streaming-demo

Create each read-only preview editor with useCreateEditor from platejs/react, with the same plugins and dependencies as before.

wiring
html-export

Create the server page's export editor with createEditor from platejs and the client preview's editor with useCreateEditor from platejs/react, and keep rendering both through EditorStatic.

Plate UI

Suggestions paint each change in its own color and mark whole-block changes
behavior
suggestion

Paint every part of one change in one color, and each change in its own color, even when one person made them all.

new
suggestion

Mark a suggested line break, a removed line break, or a whole-block change such as a paragraph turned into a heading, in the left margin in its change's color.

behavior
suggestionmode-toolbar-button

Show a toast when Suggesting refuses a change, and leave the document as it was. Suggesting refuses any change inside a code block and a change to a table itself such as adding a row. Text typed inside a table cell shows as a suggestion. So does a list edit, such as Enter in a list item. The mode menu switches to Suggesting only when the switch takes.

behavior
block-listblock-list-static

Paint no number on a numbered item that a pending suggestion deletes, and give the items after it the numbers that accepting the deletion gives them.

behavior
discussion

Accept and Reject on a suggestion card decide the change that card shows.

behavior
suggestion-demosuggestion-format-demosuggestion-view-demosuggestion-persistence-demo

Pass only authored={{ intent: 'propose' }} to a suggesting view.

  • Pass only the intent to a suggesting view: replace authored={{ intent: 'propose', projection: 'markup' }} with authored={{ intent: 'propose' }}.
behavior
version-history-demo

Restore a saved revision with its Restore button, as one edit you can undo. The per-author revert is removed.

Plate UI

Fix bullets and import warnings
fix
block-list-staticlist-static

Draw a bulleted item as a disc list inside its block, like numbered and to-do items, so saved HTML reads it back as a list and Word export writes a Word bullet list; bullets on toggles and images keep the root marker.

fix
import-toolbar-button

Show one "Imported with N warnings" toast that leaves out lossless cleanups, such as a removed <style>.

Plate UI

Refuse link form drafts that do not read as an address
behavior
link

Remove the forceSubmit state. The form saves a new or changed address that starts with http:// or https://, has another scheme such as mailto:, or starts with /, ./, ../, # or ?. It stays open on any other draft, such as www.example.com, and when allowedSchemes refuses the address. Editing only the link text keeps the stored address.

Plate UI

Open the link form with Cmd+K
fix
link

Fix Cmd+K, which did not open the link form. api.trigger() reads the editor's focus when focused is omitted, and returns false when the form stays closed, except over a selection inside a link, where it returns true without opening one.

Plate UI

Use neutral names for stored keys, exported files and comments data
rename
emoji-pickeremoji-data

Store frequent emojis under emoji-frequent:v1 and cached shortcodes under emoji-shortcodes:v1:<url>.

  • The picker no longer reads frequent emojis saved under the old key, so the list starts empty.
rename
export-toolbar-button

Name exported files document.html, document.md and document.docx.

rename
import-toolbar-buttoncomment-demo

Write comments data with kind: 'comments', the value platejs/comments reads.

rename
collaboration-demo

Use collaboration-demo as the demo's Yjs root and room id.

Plate UI

Rebuild the select editor as one field
behavior
select-editor

Replace SelectEditorContent, SelectEditorInput, SelectEditorCombobox and select-command.tsx with one SelectEditor. It keeps the chips as the only value, writes the form's value back whenever it differs from the chips, and passes ref, onBlur and ARIA props to the editable.

  • Replace SelectEditorContent, SelectEditorInput and SelectEditorCombobox with one SelectEditor that takes items, value or defaultValue, onValueChange and the editable's props.
fix
select-editor

Move the active option with ArrowUp and ArrowDown wherever the caret is, close the menu and clear the search on Escape and mod+Enter, and link a read-only chip to its url only when getLinkHref accepts it, so a chip with a script or malformed url shows without a link instead of breaking the field.

remove
select-editor

Ship tag.tsx, with the tag element plugin and its chip, in this item, and remove the separate tag item and the Radix dependencies.

  • Install select-editor instead of tag; it copies tag.tsx with the tag element plugin.

Plate UI

Name icon-only toolbar buttons for assistive tech
fix
toolbar

ToolbarButton uses a string tooltip as the button's accessible name when you pass no aria-label. Screen readers announce icon-only buttons such as Link by that name, and getByRole('button', { name: 'Link' }) finds them.

fix
turn-into-toolbar-buttonmode-toolbar-button

Name the button with its label and current value, such as "Turn into: Text" and "Editing mode: Editing". The mode button keeps its name when narrow screens hide its text.

fix
list-toolbar-buttonmedia-toolbar-button

Name both halves of each split button, such as "Bulleted list" and "Bulleted list styles", or "Image" and "Image options".

wiring
history-toolbar-buttonimport-toolbar-buttonexport-toolbar-buttontable-toolbar-buttoncomment-toolbar-buttonmore-toolbar-buttonemoji-toolbar-buttontable

Remove each aria-label that repeated the button's tooltip. The accessible names stay the same.

Plate UI

Fix demos whose starting document did not load
fix
editable-voids-demo

Use the demo plugin's element type, so the page loads.

fix
hundreds-editors-demo

Install BasicBlocksKit, so each editor loads its heading.

fix
plugin-rules-demo

Fix the code block's content and use the horizontalRule type, so the page loads.

fix
align-demo

Load the alignment document instead of an empty editor.

Plate UI

Let Tab nest list items with TabbableKit installed
fix
tabbable

Read the caret from the view's editor, so Tab and Shift+Tab nest and un-nest list items and stay in code blocks and tables. Tab at a paragraph's start or end moves focus, as it does mid-paragraph.

fix
tabbable-demo

Install TabbableKit and use the demo plugin's element type, so the page loads and shows the kit.

Plate UI

Restart and continue list numbering from the numbered list menu
new
list-toolbar-button

Add Restart numbering and Continue numbering to the numbered list menu.

wiring
block-listblock-list-static

Name each list with data-list-id and its level rules with data-list-levels, so HTML and DOCX export keep each list and its levels.

behavior
block-list-static

Write each item's indent, list id, level rules, restart, start, type and checked state on its li, so pasting the static HTML keeps them.

Plate UI

Export every block through the static kit
fix
export-toolbar-button

Fix HTML and Word export throwing on tables, task lists, callouts, columns, code blocks and images by drawing the file with BaseEditorKit as presentation.

fix
block-list-static

Drop the per-level margin-left on numbered and task lists, so static HTML indents a nested list once and Word takes its level from the block's indent.

fix
export-toolbar-button

Show an error toast when HTML or Word export throws, instead of failing with no message.

fix
docx-export

Move the Word look of callouts, code blocks, and empty equation and table of contents placeholders into DOCX_EXPORT_STYLES, because the package's DOCX drawings leave colors, fonts and sizes to the stylesheet.

fix
block-list-static

Draw the task checkbox inside its li and mark the li with data-checked, so Word export gives each task one paragraph with a ☑ or ☐ list marker.

fix
indent-static

Target images like IndentKit does, so a static editor loads and indents an image the live editor indented instead of throwing a schema error.

fix
list-static

Target images like ListKit does, so a static editor loads an image in a list and draws it as a list item.

Plate UI

Rebuild the emoji popup and picker on frimousse and Emojibase
new
emoji-data

Add a shared Emojibase catalog with GitHub shortcodes, loaded on first use from a pinned CDN release, cached in the browser, and ranked by shortcode before label and tag matches.

behavior
emoji

Define EmojiPlugin in the copied file, search emoji-data, insert the emoji as text, show a loading row that keeps Enter from splitting the block, and keep the popup closed inside code blocks.

  • Replace emojiPlugin with EmojiPlugin from the copied emoji file.
behavior
emoji-picker

Build the picker on frimousse with keyboard navigation, the ranked emoji-data search, a frequent row and an unavailable message, and take the trigger as the child with a required onEmojiSelect(emoji).

  • Pass the trigger as the picker's child and handle onEmojiSelect(emoji); the data, settings, closeOnSelect and disabled props and EmojiPickerTrigger are gone.
behavior
emoji-toolbar-buttoncallout

Insert the picked emoji at the selection as its own undo step and return focus to the editor; the callout sets its icon from the picker.

behavior
inline-combobox

Highlight the top result after each query until an arrow key or a scroll moves away, let Enter pick a result in the frame it appears, and take a loading prop that keeps Enter and Tab from editing while options load.

Plate UI

Install the package versions Plate declares and skip unused files
fix
export-toolbar-buttondocxexcalidrawcode-blockcode-block-codemirrorremote-cursor-overlaycollaboration-demo

Request the version range Plate declares for each npm package, such as juice@^11.0.1, xmlbuilder2@^3.1.1 and yjs@>=13.6.30, instead of the latest version.

fix
date-staticlink-staticmath-staticmention-staticdndeditor-aiaiai-apiai-menusettings-dialogexport-toolbar-buttoneditor-plugins-staticblock-menu

Stop installing files nothing imports: lib/inline-suggestion.ts, hooks/use-mobile.ts and the shadcn button. The four static items also stop requesting class-variance-authority.

Plate UI

Read the current user from the editor's userId
behavior
commentsuggestionimport-toolbar-button

Read the current user from editor.userId, so comments, replies and suggestion colors follow the editor's user.

  • Remove currentUserId from CommentsPlugin initialState and pass the same user as createEditor({ userId }).
behavior
mode-toolbar-button

Offer Suggestion mode whenever SuggestionPlugin is installed, including editors without a userId.

behavior
comment-democomment-overlap-democomment-persistence-democomment-review-demodiscussion-demosuggestion-demosuggestion-format-demosuggestion-persistence-demoplayground-demoversion-history-demoai-demoeditor-ai

Name the user once with the editor's userId, or run as the local user without one.

Plate UI

Give every selectable block a drag handle
behavior
dnd

Every selectable block gets a handle at any depth, such as blocks inside blockquotes, details, columns and table cells, and only the innermost hovered block shows its handle. The handle reads its blocks from editor.read.transfer.nodes, and a selected table no longer hides the editor's handles.

behavior
block-menu

Cut takes the blocks editor.read.transfer.nodes() returns, such as a list item with its nested items.

Plate UI

Move blocks, columns and table rows without dragging
behavior
dnd

Clicking a block's drag handle opens Move up, Move down and Cut, and Mod+Shift+ArrowUp / Mod+Shift+ArrowDown move the blocks around the caret. Dropping a block into another editor copies it, and Alt (Apple) or Ctrl copies inside one editor.

behavior
column

Clicking a column's drag handle opens Move left and Move right.

behavior
table

Clicking a row's drag handle opens Select row, Move up and Move down; the handle's label is "Drag row or open row actions".

behavior
block-menu

The right-click menu offers Move up, Move down and Cut.

Plate UI

Drag blocks natively, without React DnD
behavior
dnd

Drag handles start a native drag with editor.api.dom.drag.start, and DropIndicator paints useDropIndicator() in each view. DndKit needs no DndProvider, and the react-dnd dependencies are gone.

remove
column

The column handle drags its column natively; the vertical drop line comes from DndKit.

remove
table

The row handle drags its row natively; the drop line comes from DndKit.

behavior
media-imagemedia-video

Dragging media starts the same native block drag.

behavior
upload

Dropped files land at the edge under the pointer.

Plate UI

Open autocomplete popups over typed text instead of an inline input
behavior
inline-comboboxmentionslashemojifootnote

Open the popup when the trigger is typed and filter on the text after it, keeping the editor focused. Enter or Tab completes the active option in one undo step, Escape keeps the typed text, and IME preedit filters without selecting.

  • Mount MentionCombobox, SlashCombobox, EmojiCombobox and FootnoteCombobox through each plugin's slots.afterEditable; the input elements are gone.

Plate UI

Render streamed previews from the latest draft
behavior
ai-menumarkdown-streaming-demo

Render streamed previews from the latest draft, skipping drafts that were never shown when rendering falls behind the stream. The streaming demo's static output shows its status and parse error with the parse it renders. Both previews render only when their document changes, not on every streamed update. The AI draft's purple text is styled by its container instead of a decoration on every text, its end marker is read from the last block only, the fallback end marker stays mounted so the preview is not restyled whenever it appears or disappears, and the inline draft scrolls when it resizes instead of measuring layout after every render.

Plate UI

Remove the Markdown joiner transform
remove
markdown-joiner-transformai-api

Remove the Markdown joiner transform. The AI command route streams model text without buffering or added delays.

  • Remove experimental_transform: markdownJoinerTransform() from the AI command route and delete lib/markdown-joiner-transform.ts.

Plate UI

Parse Markdown as CommonMark with Plate tags
wiring
markdown

Configure MarkdownPlugin with remark-math, remark-gfm and remark-emoji only; Plate tags such as <callout> read without remark-mdx, and mentions read as [label](mention:ref) links.

  • Remove remarkMdx and remarkMention from MarkdownPlugin remarkPlugins; Plate tags are built in and mentions are [label](mention:ref) links.
wiring
markdown-to-editor-demo

Parse through the kit's MarkdownPlugin configuration instead of passing per-call remark plugins.

behavior
ai-api

Refer to Plate's Markdown tags instead of MDX in the generate, comment and common prompts.

Plate UI

Stream Markdown previews without AI chat and update only changed preview blocks
behavior
markdown-streaming-demo

Stream Markdown with editor.api.markdown.parseSlice instead of the AI chat preview: previews hide an unfinished trailing tag, Finish and Stop parse the draft strictly once, every parse continues the latest preview, and reset cancels without a final parse. The static preview renders each parse as the document of EditorView without editing its editor; the editable preview installs content plugins only and replaces only the changed blocks. The Markdown source, chunk size and delay are editable.

behavior
ai-menu

Render the AI draft as the document of the static preview editor instead of copying it into that editor on every chunk. The streaming end marker covers only the draft's last character, so it appears once when code highlighting splits the last line.

Plate UI

Use direct conversion contracts and preserve imported review data
wiring
import-toolbar-button

Parse HTML and Markdown through their installed format APIs, show successful conversion warnings, and prepare a replacement editor with imported Word comments through CommentsPlugin when available.

  • Pass the editor plugin list and an onImport editor-owner callback to ImportToolbarButton; the button prepares a complete detached replacement before the application swaps editors.
rename
export-toolbar-button

Use diagnosed HTML and Markdown serializers plus exportDocx, preserve one chosen accepted, proposed, or review projection, and export attached comment threads as Word comments.

  • Use exportDocx from platejs/docx/export; the exportToDocx alias does not exist on next.

Plate UI

Export one chosen document projection as HTML, Markdown, or Word
behavior
export-toolbar-button

Export HTML, Markdown, and Word from the same captured document revision. With unresolved suggestions, choose Include suggested changes or Exclude suggested changes. Export as Word with tracked changes preserves pending suggestions as Word revisions and reports conflicts that require resolution.

remove
export-toolbar-button

Remove Export as PDF and Export as Image, along with the html2canvas-pro and pdf-lib dependencies.

  • Remove html2canvas-pro and pdf-lib from your app when no other code uses them.
fix
export-toolbar-button

Inline the app's own stylesheets in HTML exports instead of linking the platejs.org stylesheet.

fix
editor-dropdown-menu

Complete close focus and dismissal before another trigger press so toolbar menus reopen on the first click after selecting an item.

fix
docx-demo

Set a current user so Suggestion mode records suggestions, and group contiguous typing into one visible suggestion and Word revision.

fix
import-toolbar-button

Link its DOCX registry metadata to the DOCX documentation page.

wiring
export-toolbar-button

Use the current editor's document-first HTML, Markdown, and DOCX exporters directly, with one captured projection and shared diagnostics.

wiring
docx-export

Keep the dependency-free copied presentation stylesheet while platejs/docx/export supplies semantic mappings for code blocks, columns, equations, callouts, headings, and tables of contents.

  • Keep DOCX_EXPORT_STYLES in copied app code; DOCX semantic mappings come from platejs/docx/export.

Plate UI

Choose an explicit upload provider
wiring
uploadupload-browserupload-r2upload-s3files-api

Install provider-neutral upload UI with an explicit browser-local, Cloudflare R2, or Amazon S3 provider; persistent providers share one gateway policy and install only their own adapter dependencies.

Plate UI

Install Files SDK uploads with a complete upload kit and private gateway
wiring
uploadfiles-apieditor-plugins

Install the Files SDK client and private document-scoped gateway together through the upload kit; the route requires application access policy and storage credentials.

wiring
mediaeditor-plugins-static

Render completed media separately while the upload schema owner omits unresolved drafts from static output.

Plate UI

Keep conversations discoverable when their document target is unavailable
behavior
comment-toolbar-buttoncommentdiscussionfixed-toolbar

Discover open, resolved, and unavailable conversations through All comments; remove stale block placement and preserve in-progress conversation actions.

wiring
comment-democomment-overlap-democomment-persistence-democomment-review-demosuggestion-demosuggestion-format-demosuggestion-persistence-demo

Include document-level comment discovery in editable, read-only, persistence, and suggestion examples.

Plate UI

Own selected-item focus and typed block actions
behavior
editor-dropdown-menumore-toolbar-buttonmode-toolbar-buttonlist-toolbar-buttonalign-toolbar-buttonline-height-toolbar-buttoninsert-toolbar-buttonslash

Run final focus from the selected menu item and call typed block insert or upsert operations directly.

Plate UI

Use direct editor actions and complete generated installs
behavior
insert-toolbar-buttonslashturn-into-toolbar-buttonblock-menu

Call installed feature operations directly, preserve exact block selections, and disable unsupported structural actions.

wiring
alignline-heighteditor-plugins-static

Share the same server-safe formatting kits between editable and static editor compositions.

fix
plateplate-ui

Install package requirements derived from copied source and serve production and development payloads from one generated registry state.

Plate UI

AI Comment selection and recovery
fix
ai-menu

Publish generated feedback as ordinary comment threads. Keep completed comments when generation stops or fails, and show failed requests with retry and dismissal controls.

behavior
ai-api

Limit comment prompts to the selected content while preserving its formatting and inline structure.

Plate UI

Save comment attachments with document revisions and preserve input when comment actions fail
behavior
commentdiscussion

Await comment actions before clearing input, retain failed replies for retry, reopen resolved conversations independently of document undo, and keep suggestion conversations replyable after decisions.

behavior
use-chat

Let completed AI comments finish saving when the chat menu closes; discard pending drafts on cancellation.

behavior
comment-persistence-demosuggestion-persistence-demoeditor-ai

Save comments and opaque attachments with the matching document revision and restore them into a fresh editor.

behavior
discussion-demo

Load three authored suggestions and their conversations together while keeping direct editing as the default.

Plate UI

Compare saved revisions structurally
new
diff

Inspect two-way and three-way comparisons with grouped effects, evidence, conflict choices, filters, and navigation. Checking a group also checks the groups it requires, and unchecking a group unchecks every checked group that requires it.

behavior
version-history-demo

Save document revisions and compare the two latest snapshots.

Plate UI

Distinguish suggestion authors by color
behavior
suggestionsuggestion-style

Use green for the current user's suggestions and stable distinct colors for collaborators, with underlines for insertions and strikethroughs for deletions.

Plate UI

Explore formatting, projections, and saved proposals in the Suggestions examples
new
suggestion-format-demosuggestion-view-demosuggestion-persistence-demo

Review formatting and block proposals, compare document projections, and save proposals with their discussion threads.

fix
suggestion

Keep discussion buttons available when switching a saved document between accepted content and markup.

wiring
editor-ai

Load the multi-author suggestion example and linked discussions from its included saved document, with suggesting mode configured on EditorRoot.

Plate UI

Find opens and focuses the requested editor view
fix
findfind-demo

Find opens independently in each editor view. Custom opening controls use useFind inside Editable slots, while BaseFindPlugin supplies shared queries and results. The demo includes a second view of the same document.

Plate UI

Bind AI streams to the editor session
behavior
use-chat

Bind the shared SDK transport with useAIChat. Share one session across mounted views and keep streaming while a writable view remains. Keep endpoint configuration and comment persistence in the application.

behavior
ai-menu

Render the session preview through a read-only editor view and size the menu within the viewport.

behavior
copilot

Render ghost text without changing the accepted completion. Keep demo responses in the application route.

behavior
copilot-api

Return completion text and pass the configured gateway key to the provider.

Plate UI

Insert and convert blocks through their feature commands.
fix
transforms

Insert blocks with owned construction, empty-source replacement and selection. Preserve source content while media URL input resolves and keep each action in one history step.

behavior
block-menu

Convert the selected blocks with one feature command, including disjoint selections and structural wrappers.

Plate UI

Synchronize drawing scenes with document changes
behavior
excalidraw

Use useExcalidrawSync to apply document changes and undo to the canvas, save referenced images, and exclude transient canvas state from document writes. Keep lazy loading and presentation in the copied element.

Plate UI

Use the editor-owned Find query with local search controls.
fix
find

Search through BaseFindPlugin while keeping the search bar, deferred input, focus and scroll behavior local. Preserve IME confirmation and opening before the first query.

behavior
editor

Style the current match separately from other matches using the feature’s transient data attributes.

Plate UI

Read current suggestion groups from the feature
behavior
suggestiondiscussion

Read semantic groups with useSuggestionReviews and accept or reject by ID. Keep labels, dates and card activation in the copied view.

behavior
suggestion-static

Use the feature's inline suggestion projection for consistent inherited text styling.

Plate UI

Display the current heading size and editing mode accurately.
fix
font-size-toolbar-button

Derive the default size from the heading level and keep input, presets and step buttons within 1–100 pixels. Reject empty and nonnumeric input.

behavior
mode-toolbar-button

Display Viewing and select its menu option whenever the editor is read-only, including when the suggestion preference is enabled.

Plate UI

Keep DOCX bookmark names inside each document conversion
wiring
docx

Install the paste and import plugins; call exportDocx with a document snapshot from the export action.

wiring
docx-exportheading-statictoc

Emit ordinary HTML anchors and let the converter assign unique bookmark names within each DOCX document.

Plate UI

Keep media upload tasks active across draft view remounts
fix
mediamedia-upload

Admit picker, paste, and drop batches through one draft-slot protocol. Upload tasks survive view remounts, cancel when their keyed draft loses authority, expose local progress and retry state, and report each failure once through MediaKit.

Plate UI

Preserve editor state across streaming controls and clipboard failures
fix
markdown-streaming-demo

Stop pending chunks when resetting, changing scenarios, navigating, switching editor modes, or leaving the demo.

behavior
code-block

Confirm copying after the clipboard write succeeds and allow retry after a failure.

behavior
comment

Preserve stored timestamps when callers reuse or mutate input dates.

behavior
select-editorcontrolled-demo

Release pending layout measurements and loading timers on unmount.

behavior
media

Clarify file-size and minimum-file-count errors.

wiring
export-toolbar-button

Avoid adding an empty stylesheet during image and PDF export.

Plate UI

Install AI and drag-and-drop integration with feature kits
wiring
aidndeditor-aieditor-plugins

Use AIKit and DndKit to enable AI commands and drag and drop with ordinary Plate and Editor composition. Share one AI stream across editor views and retain custom transports and drag managers.

behavior
editor-aidnd

Provide tooltips in standalone installs.

behavior
date

Focus the calendar when opening the date picker.

behavior
emoji-pickerfont-size-toolbar-button

Preserve server rendering and input semantics in Base UI editors.

Plate UI

Use one text child for code blocks
remove
code-blockcode-block-staticcode-block-demo

Store multiline code in one text child and remove the code-line component and virtualization dependency.

  • Remove the code-line plugin and component when updating copied editor code.

Plate UI

Keep comments attached through destructive edits and history
fix
commentdiscussiondiscussion-demo

Keep comments reachable after complete text deletion, and restore exact highlights through undo and redo.

fix
comment

Render thread message bodies with the static Plate view so replies do not mount nested editable runtimes.

Plate UI

Review comments and suggestions in application-owned Floating Discussion
behavior
commentcomment-toolbar-buttondiscussiondiscussion-demoeditoreditor-static

Open each block's combined comments and suggestions in Floating Discussion, including exact overlaps, block-caret creation, and static or read-only highlights.

  • Install DiscussionKit for Floating Discussion and per-block affordances.
  • Replace block-discussion with discussion.
behavior
discussionsuggestion

Show suggestion authors, changes, attached comment threads, and Accept or Reject actions beside ordinary comments.

wiring
commentdiscussionuse-chateditor-ai

Stage AI comments for Accept or Reject before publishing their thread records.

fix
editor-ai

Keep the toolbar above the editor and use Floating Discussion on narrow screens without collapsing the editing surface.

behavior
commentdiscussiondiscussion-demoeditor-ai

Load fetched thread records through CommentsPlugin.configure({ initialState: { initialThreads } }), preserving ranges, authors and timestamps. Read records for saving through api.getThreads.

fix
plate-to-htmlsuggestion

Preserve inserted and removed suggestion markup in static HTML exports.

fix
code-block-staticdocx-exportexport-toolbar-buttondocx-demo

Preserve code token colors and indentation through the copied DOCX export preset.

Plate UI

Inline local registry component prop shapes
wiring
context-menudropdown-menufloating-popovertoolbarmdx-plate-componentsblock-list-staticblock-listcode-block-staticcode-blockdndeditoremoji-pickerfloating-toolbarheading-staticinline-comboboxmark-toolbar-buttonselect-commandversion-history-demo

Define component-owned prop shapes at their component signatures and reserve named prop contracts for exported reuse.

Plate UI

Use exact editor geometry for transient UI
new
findfind-demoeditor-plugins

Search documents with a visible Find bar and transient, keyboard-navigable matches.

new
inactive-selection-demo

Demonstrate native inactive-selection paint for expanded ranges and collapsed carets without an editor plugin.

behavior
editorai-menufont-size-toolbar-buttonlink-toolbar-buttonlink

Keep the canonical selection visible while marked editor controls own focus, and clear it on every unmarked focus transition.

behavior
use-widget-floatingfloating-toolbarlink

Position floating controls from the exact mounted editor selection, reveal them only after placement resolves, and mount complete toolbar components with only the Editable ref. FloatingToolbar accepts optional custom children.

wiring
remote-cursor-overlaycollaboration-demo

Render remote Yjs selections and carets through YjsPlugin slots with per-cursor updates.

fix
link

Focus the URL input when the floating form opens, including from an empty paragraph, and preserve keyboard navigation between its fields.

Plate UI

Use semantic Details blocks
rename
detailsdetails-staticdetails-toolbar-buttondetails-demo

Use nested semantic Details and Summary nodes with transient disclosure state that each editor root keeps for itself.

Plate UI

Use canonical editor API names
rename
dndinline-comboboxblock-discussionuse-chataiai-menucommentselect-editorfind-replace-democode-blockfont-size-toolbar-buttonmathmedia-preview-dialoghuge-document-demo

Use useCreateEditor for React editor creation. use-chat exports useEditorChat, block discussion exports BlockResolvedSuggestion, and missing required values report contextual errors.

Plate UI

Inline required-value checks
remove
expect-defineddndinline-comboboxblock-discussionuse-chat

Keep required-value checks in each component with contextual errors and no shared registry dependency.

Plate UI

Select schema-defined blocks
behavior
block-selectiontable

Select custom Plate block content from its schema and let tables render their own selection geometry.

Plate UI

Install Base-first registry code with eight shadcn styles
behavior
plate-uitoolbarfloating-popovereditor-dropdown-menueditor-context-menu

Install Base UI source with base-nova by default. Explicit Radix styles select the matching interaction adapters.

behavior
plate-uitoolbarfloating-popover

Install Nova, Vega, Maia, Lyra, Mira, Luma, Sera, or Rhea code styles without duplicating the complete editor registry.

fix
block-menucode-blockcode-drawingcommentemoji-pickerfont-color-toolbar-buttonfont-size-toolbar-buttonfootnotemathtabletable-toolbar-buttonturn-into-toolbar-button

Compose popovers, dropdowns, and context menus through the selected provider without provider-specific trigger, focus, delay, or value props in consumer code.

fix
fumadocs

Install the docs block with Base or Radix without fixed Radix primitive packages.

fix
editor-basicaidatelinksuggestion-style

Create a fresh Next project with a complete dependency graph, collision-free inline-suggestion imports, and current copied-source types.

Plate UI

Keep exact editor contracts application-owned
remove
editor-plugins

Install the authored editor kit without generated TypeScript or schema snapshots. Generate exact contracts from the application's customized plugin module and enforce plate generate --check <entry> in CI.

  • Delete unused plugins.generated.ts and plugins.schema.json files. If the app needs exact contracts, install @platejs/cli, regenerate from its local plugin module, and enforce plate generate --check <entry> in CI.

Plate UI

Keep copied editor state compatible with React Compiler
fix
font-color-toolbar-buttonmath

Preserve the active editor value while focus moves into a control, and reopen inline equations only after selection returns.

behavior
media-placeholderplate-to-htmluse-object-url

Give each browser object URL one source lifetime and revoke it when that source is replaced or unmounted.

behavior
tableuse-chat

Render the selected-cell drag handle at its cell owner and keep fake-stream cancellation inside its transport.

behavior
ai-menucolumndndeditoremoji-pickerinline-combobox

Use named React Compiler components without manual memo wrappers or display-name assignments.

Plate UI

Select one or many nodes through the editor model
remove
editorblock-menudndtableai-menucursor-overlay

The copied editor renders a Pointer Events marquee while exact one-or-many membership stays in editor selection. No selection plugin, area abstraction, or selection package is required.

Plate UI

Improve editor control accessibility and iframe security
fix
toolbarmedia-preview-dialogmedia-placeholder

Use native, keyboard-accessible controls for split toolbars, media upload, and image preview actions.

behavior
media-embedmedia-embed-staticpotion-iframe-demopro-iframe-demo

Restrict embedded content with explicit sandbox and referrer policies.

Plate UI

Complete the v54 editor document profile
rename
datedate-staticmentionmention-staticfootnotefootnote-staticblock-discussion

Store dates under one value and persisted associations under ref.

rename
code-drawingcode-drawing-staticmathmath-static

Use flat lowercase drawing fields and store equation source under latex.

rename
columnmediatablelisteditor-pluginseditor-ai

Apply the v54 migration, field ownership, and numeric-domain contracts.

Plate UI

Colocate registry component state
wiring
uploadthingmedia-placeholder

Keep UploadThing server routing in uploadthing and colocate client upload state in media-placeholder.

  • Keep custom upload state in your media placeholder component; uploadthing installs only the server router.
wiring
block-discussionemoji-picker

Keep single-consumer subscription and picker state inside their owning component families.

Plate UI

Keep default editor composition migration-free
wiring
editor-pluginseditor-defaultdocument-migration-demo

Keep reusable editor composition migration-free and teach named lineage only in the dedicated migration example.

  • Define your named schema and migration chain in the application persistence owner; editor-plugins exports only EditorKit.

Plate UI

Localize editor UI policy
wiring
emojiemoji-pickeremoji-toolbar-buttoncalloutinline-comboboxfloating-toolbarlinktabletable-toolbar-buttonblock-menumentionmediamedia-videoblock-placeholderresize-handleblock-selectioncopilotplate-to-html

Install self-contained families with product copy, limits, styling, endpoints, and interaction policy in copied source; table composes renderer layout and pointer behavior directly.

Plate UI

Use the final Plate v54 document model
behavior
basic-blocksbasic-blocks-staticheadingheading-staticlistlist-staticblock-listblock-list-statictabletable-staticmedia-videomedia-placeholdercode-blockeditor-plugins

Use one semantic Heading, boundary-only list numbering, semantic Table fields, intrinsic Media dimensions, and the generated v54 editor contract.

Plate UI

Install copied editor features from one flat editor namespace
rename
align-staticbasic-blocks-staticbasic-marks-staticcallout-staticcode-block-staticcode-drawing-staticcolumn-staticcomment-staticdate-staticfootnote-staticexcalidrawfont-staticindent-staticline-height-staticlink-staticlist-staticmath-staticmedia-staticmention-staticsuggestion-statictable-statictoc-statictoggle-staticeditor-plugins-staticaialignautoformatbasic-blocksbasic-marksbasic-nodesblock-menublock-placeholderblock-selectioncalloutcode-blockcode-drawingcolumncommentcopilotcursor-overlaydatediscussiondnddocxdocx-exporteditor-pluginsemojiexit-breakfixed-toolbarfloating-toolbarfootnotefontindentline-heightlinklistmarkdownmathmediamedia-uploadthingmentionslashsuggestiontabbabletabletoctoggleeditoreditor-staticai-menuai-toolbar-buttonalign-toolbar-buttonimport-toolbar-buttonexport-toolbar-buttoncaptioncaption-staticfont-color-toolbar-buttoncomment-toolbar-buttonblock-discussionselect-editoremoji-toolbar-buttonhistory-toolbar-buttonlist-toolbar-buttonindent-toolbar-buttoninline-comboboxinsert-toolbar-buttonline-height-toolbar-buttonlink-toolbar-buttonmark-toolbar-buttonmedia-toolbarmedia-toolbar-buttonmode-toolbar-buttonmore-toolbar-buttonresize-handletable-toolbar-buttontoggle-toolbar-buttonturn-into-toolbar-buttonremote-cursor-overlaytoolbarsuggestion-toolbar-buttonblock-listblock-list-staticblockquoteblockquote-staticcodecode-staticequation-toolbar-buttonfont-size-toolbar-buttonheadingheading-statichighlighthighlight-statichorizontal-rulehorizontal-rule-staticmedia-imagemedia-image-staticmedia-preview-dialogkbdkbd-staticmedia-audiomedia-audio-staticmedia-embedmedia-embed-staticmedia-filemedia-file-staticmedia-placeholdermedia-videomedia-video-staticparagraphparagraph-staticsearch-highlighttag

Install copied editor features from one flat editor namespace

  • Move copied Plate imports from @/components/ui and @/components/editor/plugins to @/components/editor.
  • Install feature items without -kit or -base-kit suffixes; FooKit remains the exported plugin tuple.
  • Import feature-owned renderers and family-only components from the owning feature file, such as @/components/editor/footnote and @plate/footnote.
  • Use semantic renderer item names such as blockquote and media-image instead of *-node; install static renderers from their matching *-static items.

Plate UI

Keep component behavior locally owned
behavior
ai-menublock-draggableblock-listcallout-nodecaptioncode-drawing-nodecolumn-nodecommentemoji-nodeemoji-toolbar-buttonequation-nodeexcalidraw-nodeexport-toolbar-buttonfloating-toolbarfont-color-toolbar-buttonimport-toolbar-buttonindent-toolbar-buttoninline-comboboxlink-toolbar-buttonlink-toolbarlist-toolbar-buttonmedia-audio-nodemedia-embed-nodemedia-file-nodemedia-image-nodemedia-placeholder-nodemedia-preview-dialogmedia-toolbarmedia-upload-toastmedia-video-noderemote-cursor-overlayresize-handleselect-editortable-nodetable-toolbar-buttontoc-nodetoggle-nodetoggle-toolbar-buttontoolbar

Keep interaction state and behavior inside direct React 19 component families.

  • Rename the FloatingToolbar state prop to options.
wiring
emoji-kitlink-kitmedia-kit

Install the exact app-local descriptors owned by their copied UI families.

Plate UI

Keep optional editor features explicit
wiring
editor-kiteditor-aicopilot-demomarkdown-streaming-demoplayground-demo

Reuse the primary editor composition directly, compose Copilot only in its demo, and install ElementIdPlugin only when persisted IDs are required.

  • Import the primary editor composition directly outside the Copilot demo. Append CopilotKit only in copilot-demo.
  • Install ElementIdPlugin explicitly when persisted element IDs or Markdown withBlockId are required.
  • Install CodeDrawingPlugin or ExcalidrawPlugin explicitly in editors that use those specialized nodes.
  • Remove schema: EditorSchema from copied editor setup. Add an application-owned schema id and version only for persisted schema lineage, migrations, history serialization, or collaboration.
behavior
editor-kitcode-drawing-demoexcalidraw-demoplayground-demo

Keep code drawing and Excalidraw explicit in the demos that use them.

behavior
editor-kit

Derive schema identity from the installed plugin composition instead of publishing application lineage from copied registry code.

Plate UI

Fix registry install dependencies
fix
ai-apiai-kitai-menuai-nodeautoformat-kitblock-context-menublock-discussionblock-draggableblock-selectionblock-selection-kitblock-suggestionblockquote-nodecallout-nodecode-block-nodecode-drawing-nodecode-nodecolumn-nodecomment-nodecomment-toolbar-buttoncopilot-democopilot-kitcursor-overlaydate-nodedocx-export-kiteditor-aieditor-base-kiteditor-basiceditor-kitemoji-nodeemoji-toolbar-buttonequation-nodeexcalidraw-kitexcalidraw-nodeexport-toolbar-buttonfloating-toolbarfont-base-kitfont-color-toolbar-buttonfont-kitheading-nodehighlight-nodehr-nodehuge-document-demohundreds-editors-demoimport-toolbar-buttoninline-comboboxinstallation-next-demokbd-nodelink-toolbarlist-toolbar-buttonmarkdown-streaming-demomarkdown-to-plite-demomedia-audio-nodemedia-base-kitmedia-embed-nodemedia-file-nodemedia-image-nodemedia-toolbarmedia-video-nodemode-toolbar-buttonmore-toolbar-buttonmultiple-editors-demoplate-to-htmlpreview-markdown-demoresize-handlesearch-highlight-nodeselect-editorselect-editor-demosettings-dialogslash-nodesuggestion-nodetabbable-demotable-nodetag-nodetoc-nodetransformsturn-into-toolbar-buttonuse-chatversion-history-demo

Install every required package and copied registry file without redundant declarations.

Plate UI

Use runtime keys for TOC and DOCX navigation
behavior
docx-export-kitheading-node-statictoc-nodetoc-node-static

Build live TOC navigation and DOCX-local bookmarks from runtime node keys.

wiring
editor-kiteditor-ai

Install persisted element IDs explicitly as editor product policy.

Plate UI

Use canonical node renderer props
rename
ai-nodebasic-marks-base-kitblockquote-nodecallout-nodecode-block-nodecode-nodeeditable-voids-demoemoji-nodefootnote-nodeheading-nodehighlight-nodehr-nodekbd-nodelink-nodelink-node-staticparagraph-nodesearch-highlight-nodesuggestion-nodetabbable-demotoc-nodetoggle-nodeversion-history-demo

Infer copied renderer props from their plugin descriptors.

Plate UI

Infer node component props from plugin descriptors
wiring
callout-nodecallout-node-staticcode-block-nodecode-block-node-staticcode-drawing-nodecode-drawing-node-staticcolumn-nodecolumn-node-staticdate-nodedate-node-staticequation-nodeequation-node-staticexcalidraw-nodefootnote-nodefootnote-node-staticlink-nodelink-node-staticmedia-audio-nodemedia-audio-node-staticmedia-embed-nodemedia-embed-node-staticmedia-file-nodemedia-file-node-staticmedia-image-nodemedia-image-node-staticmedia-placeholder-nodemedia-toolbarmedia-video-nodemedia-video-node-staticmention-nodemention-node-staticslash-nodetable-nodetable-node-statictag-node

Infer node component props from plugin descriptors

Plate UI

Use one table cell plugin and component
remove
table-nodetable-base-kittable-kit

Use one table cell plugin and component for data and header cells.

  • Use TableCellElement for data and header cells. Header nodes use type: 'tableCell' with header: true.

Plate UI

Keep feature wiring explicit and package-owned
fix
code-drawing-demoexcalidraw-demo

Configure feature renderers explicitly while installing each plugin name once.

fix
cursor-overlayghost-text

Read cursor geometry and schema-configured node ids from their package owners.

fix
media-image-nodemedia-video-node

Let resize handles derive read-only state from the editor.

fix
table-node

Use the DnD block selection-and-focus controller after row drops.

Plate UI

Use plugin stores for editor-local state
wiring
ai-kitblock-placeholder-kitblock-selection-kitcode-block-base-kitcode-block-kitcomment-kitcopilot-kitdiscussion-kitdnd-kitemoji-kitindent-base-kitindent-kitmarkdown-kitmedia-kitmention-kitslash-kitsuggestion-kittabbable-kittoc-kit

Seed editor-local plugin stores with initialState.

behavior
ai-menuai-nodeblock-context-menublock-discussionblock-draggableblock-selectionblock-suggestioncolumn-nodecomment-nodecursor-overlayemoji-nodefloating-toolbarghost-textlink-toolbarmedia-placeholder-nodemedia-upload-toastmode-toolbar-buttonsettings-dialogsuggestion-nodesuggestion-toolbar-buttontable-nodeuse-chat

Read, update, and subscribe to plugin state through the typed store API.

behavior
collaboration-demomarkdown-streaming-demo

Configure and update plugin store state through the same API used by copied registry code.

Plate UI

Use one script mark for subscript and superscript
behavior
basic-marks-kitbasic-marks-base-kitmark-toolbar-buttonmore-toolbar-buttonbasic-marks-valueplugin-rules-value

Use one script mark for subscript and superscript

  • For persisted v53 script marks, add migrateV54 to the app's defineDocumentMigrations chain.

Plate UI

Bind static components without React plugin imports
wiring
basic-blocks-base-kitbasic-marks-base-kitcallout-base-kitcode-block-base-kitcode-drawing-base-kitcolumn-base-kitcomment-base-kitdate-base-kitfootnote-base-kitlink-base-kitmath-base-kitmedia-base-kitmention-base-kitsuggestion-base-kittable-base-kittoc-base-kittoggle-base-kit

Bind static components without React plugin imports

Plate UI

Compose runtime-neutral Markdown, editor-owned footnotes, and Tabbable shortcuts
wiring
markdown-kit

Configure Markdown parsing without installing a renderer-specific Footnote preset.

wiring
editor-kiteditor-aieditor-base-kit

Compose the shared Markdown parser with the matching live or static Footnote renderers exactly once.

wiring
align-kitbasic-blocks-kitbasic-marks-kitcallout-kitcode-block-kitcode-drawing-kitcolumn-kitcomment-kitdate-kiteditor-aieditor-base-kiteditor-kitfont-kitline-height-kitlink-kitlist-kitmarkdown-kitmath-kitmedia-kitmention-kitsuggestion-kittable-kittoc-kittoggle-kit

Install only the presets their copied source composes, without unrelated static/base counterparts.

behavior
tabbable-kit

Preserve Indent support while reserving Tab and Shift+Tab navigation for tabbable elements.

Plate UI

Configure color palettes and recent colors
behavior
font-color-toolbar-buttontoolbarfixed-toolbar-buttonstable-node

Configure text color palettes, optionally control recent colors, and navigate color grids with the keyboard.

Plate UI

Use installed feature plugins in toolbar controls
wiring
mark-toolbar-buttonfont-color-toolbar-buttonfont-size-toolbar-buttonmedia-toolbar-buttonmore-toolbar-buttonfixed-toolbar-buttonsfloating-toolbar-buttonsinstallation-next-02-marks-demoinstallation-next-03-elements-demoinstallation-next-demo

Use installed feature plugins instead of raw type dispatch in toolbar controls.

Plate UI

Render media captions from direct inline children
behavior
captionmedia-base-kitmedia-kitmedia-image-nodemedia-video-nodemedia-audio-nodemedia-file-nodemedia-embed-nodemedia-placeholder-nodemedia-toolbar-buttonplate-to-html

Render direct media caption children, keep an empty caption hidden until asset focus, and separate asset selection from caption editing.

  • Remove CaptionPlugin from media kits and render each media element's direct children as its caption; use [{ text: '' }] when the caption is absent.
  • For persisted v53 media captions, add migrateV54 to the app's defineDocumentMigrations chain.

Plate UI

Use typed plugin portals
wiring
footnote-nodetable-nodetable-node-static

Use the installed plugin's typed editor APIs with Plate v54.

Plate UI

Use installed block insertion commands
behavior
transformseditor-kitdnd-kit

Insert code blocks, drawings, Excalidraw canvases, tables, and dropped media through their installed commands with explicit relational or path placement.

v54.0.0-beta.4

platejs

Bug Fixes

    • 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. (3a568a1)
    • 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. (df47a83)
  • 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.

    • 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. (6016f0d)
  • 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.

  • 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. (a752fda)

  • 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. (7428002)

    • 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. (a8d490e)
  • 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.

    • 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. (c16a73c)
  • 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.

    • 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. (a29e09a)
  • Fix copying part of a code block writing its raw text into text/markdown. The copied code is now escaped Markdown text.

    • 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. (828f500)
  • 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.

    • 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. (3106db0)
  • 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.

    • 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. (64c3257)
  • Fix renderStaticHtml with a document option throwing while the editor shows a review preview.

  • 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. (efacbf4)

plitejs

Bug Fixes

  • 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. (c5f9275)

  • 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. (7428002)

  • 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. (708a247)

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

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

    • 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. (263988d)
  • 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 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. (dc2d018)
  • 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.

    • Add editor.read.ranges.isEmpty(range), which answers whether a range covers no letter and no whole void element, such as a mention. (6016f0d)
  • 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.

    • 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. (64c3257)
  • Fix a document view read throwing while the editor it comes from shows a review preview.

    • 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. (c16a73c)
  • 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.

v54.0.0-beta.3...v54.0.0-beta.4 · By @sin6626, @zbeyens, @felixfeng33

v54.0.0-beta.3

platejs

Bug Fixes

    • 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. (24651f9)
  • 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 (c28d5ad)
    • 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. (5716f93)
  • 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.

    • 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. (0fe05e3)
  • 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.

    • 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. (75b505a)
    • 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. (83517ee)
  • Move BoardStrokePath from platejs/board/react to platejs/board. Import it from platejs/board.

    • 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. (972c50f)
  • 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 /> },
});
    • 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 (f7fa388)
    • 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. (eff0999)
  • 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. (9d460d1)
    • 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. (8883a26)
  • 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.

    • 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. (839996e)
  • 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.

  • 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. (5c0aff5)

  • 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 (868638a)

  • 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. (7a0e402)

    Migration: Replace the wrapContent slot that rendered <InkLayer sign={Sign} /> after its children with wrapContent: (props) => <InkContent {...props} sign={Sign} />.

  • 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 (405fd82)

  • 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 (0938c3d)

  • 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 (dffae16)

  • 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. (7bc3175)

  • 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. (6d7c412)

    • 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 (78987a9)
  • 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

    • 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 (2ad50b0)
    • 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 (824887f)
  • Fix streamed Markdown parses that missed a link definition inside a quote or a list item

    • 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 (a1af219)
    • 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. (9fc3e9a)
  • 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>;
  • 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. (038a7bc)

    • 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. (9b218c9)
    • Report an unsupported file type first when a file of another kind is picked for an upload placeholder, before the size and configuration checks. (0db21cf)
  • 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

Bug Fixes

  • 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. (cccbe29)

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

  • 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. (18448e7)

  • Fix Backspace and Delete next to mentions, inline voids and inlines a caret may not stop in (44ce4cb)

    • 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.
  • 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. (77ca905)

  • 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. (1861fc4)

    • 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. (eff0999)
  • Keep the undo boundary when the editor refuses an external-text edit, so the next edit after a composition gets its own undo step.

  • 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 (7ca1ad5)

  • 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 (022a98b)

  • 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. (0b0f932)

  • 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 (8623edf)

  • Fix the caret and selection in mixed content and around marked controls (d472a04)

    • 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.
  • 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 (7ca1ad5)

    • 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. (674a565)
  • 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.

  • 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. (60c44c5)

  • 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. (16716a6)

  • 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 (70560ee)

  • 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. (94e8d60)

  • 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. (19995c7)

    • 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.
  • 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 (02007e6)

    • 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. (806ba41)
  • 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.

  • Remove useSelectionView from plitejs/react. Use useCaretEditor() for the editor of the root that holds the caret. (60c44c5)

  • 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. (67de7de)

  • 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. (5c0aff5)

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

  • 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. (24651f9)

    • 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. (97828f2)
  • Speed up typing in documents whose schema declares a unique property, such as block ids. (59aa10b)

  • 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. (25fc8f2)

  • 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. (1946357)

  • Fix selections across blocks a virtualized editor has not mounted, and arrow keys beside hidden content (014d1c8)

    • 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. (faf5cc3)
  • 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 compare text changes to mark whole words instead of letters, so "like" to "love" is one change instead of "ik" to "ov" (70d5dc5)

v54.0.0-beta.2...v54.0.0-beta.3 · By @zbeyens

v54.0.0-beta.2

platejs

Breaking Changes

  • Release the Plate v2 beta, a rewrite of Plate v53 that is not a drop-in upgrade. (b50ef8e)

    • The @platejs/* feature packages, such as @platejs/table and @platejs/ai, are now part of platejs, so install platejs alone.
    • The editor runs on plitejs instead of Slate.

CHANGELOG · v54.0.0-beta.0...v54.0.0-beta.2 · By @zbeyens

v53.2.2

@platejs/ai

Bug Fixes

  • Preserve streaming trailing whitespace with markdown hard breaks. (#5026)

@platejs/markdown

Bug Fixes

  • Serialize hard line breaks inside paragraph text nodes. (#5026)

v53.2.1...v53.2.2 · By @zbeyens

v53.2.1

@platejs/core

Bug Fixes

  • Add node.isMetadataProp and editor.api.isElementStateEmpty for element state checks. (#5029)

platejs

Bug Fixes

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

@platejs/utils

Bug Fixes

  • Fix block placeholders on single empty list items. (#5029)

v53.2.0...v53.2.1 · By @zbeyens

v53.1.6

@platejs/ai

Bug Fixes

  • Updated @platejs/selection.

@platejs/selection

Bug Fixes

  • Fix block selection copy and cut in Safari by writing selected blocks to the native clipboard event. (#5018)

v53.1.5...v53.1.6 · By @zbeyens

v53.1.5

@platejs/ai

Bug Fixes

  • Updated @platejs/markdown.

@platejs/markdown

Bug Fixes

  • Fix markdown deserialization from crashing on malformed HTML-like MDX input. (#5016)

v53.1.4...v53.1.5 · By @zbeyens

v53.1.2

@platejs/core

Bug Fixes

  • Fix complex leaf and text renderers triggering React hook-order warnings when marks change. (#5009)

platejs

Bug Fixes

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

@platejs/utils

Bug Fixes

  • Updated @platejs/core.

v53.1.1...v53.1.2 · By @zbeyens

v53.1.1

@platejs/ai

Bug Fixes

  • Updated @platejs/markdown.

@platejs/markdown

Bug Fixes

  • Fix MDX fallback deserialization for GFM tables containing plain less-than text. (#5007)

v53.1.0...v53.1.1 · By @kiranmagic7

v53.1.0

@platejs/docx-io

Features

  • Forward two dropped options in exportToDocx: (#4997)

    • pageSize — the html-to-docx engine accepts a page size, but exportToDocx only forwarded margins and orientation, so the document was always the default (US Letter). You can now pass e.g. pageSize: { width: 11906, height: 16838 } to export A4.
    • fontFamily — it was only applied to the serialized HTML (and only when an EditorStaticComponent was provided), so the document default font was never set and Word fell back to Times New Roman. It now also sets the document default font (documentOptions.font).

@platejs/dnd

Bug Fixes

  • Clear stale DnD drop indicators when dragging from a block into editor whitespace. (#5002)

v53.0.9...v53.1.0 · By @WilliamPeralta, @kiranmagic7

v53.0.8

@platejs/docx-io

Bug Fixes

  • Fix exportToDocx adding blank paragraphs at the top of the document. wrapHtmlForDocx emitted a <!DOCTYPE html> and indented the template; html-to-docx (html-to-vdom) keeps the DOCTYPE and the whitespace-only text nodes between tags and renders each as a blank paragraph. The wrapper now emits tight markup with no DOCTYPE. (#4991)

v53.0.7...v53.0.8 · By @WilliamPeralta

v53.0.7

@platejs/ai

Bug Fixes

  • Updated @platejs/table.

@platejs/core

Bug Fixes

  • Add transformInitialValue and nodeId.initialValueIds while keeping normalizeInitialValue as a deprecated alias (#4987)

  • Improve large-document mount and render performance across core element, mark, and nodeId paths (#4987)

    • Cut 10k mixed-document core mount time from 1240.60 ms to 468.26 ms without nodeId (62.3%, 2.65x faster)
    • Cut 10k mixed-document core mount time from 1290.66 ms to 477.73 ms with nodeId (63.0%, 2.70x faster)
    • Cut mixed-document nodeId overhead over core from +50.06 ms to +9.46 ms (81.1% smaller)
    • Cut duplicate-id paste cost from 20.06 ms to 13.79 ms (31.2%, 1.45x faster)
    • Cut 10k code-only mount time from 1500.30 ms to 496.47 ms (66.9%, 3.02x faster) and shrink the code-only tax over core from +280.75 ms to +27.89 ms (90.1% smaller)
    • Bring the current 10k core and basic large-document mount lanes to Plite parity or better (core -3.5%, core + nodeId -1.6%, basic -1.2%)
    • Preserve Plite children for void render.as tags and Plite attributes on simple leaf/text render paths

platejs

Bug Fixes

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

plitejs

Bug Fixes

  • Add experimental editor.tf.setNodesBatch for exact-path node prop updates on large documents (#4987)

    • Cut the large-document set_node hot path from 18.56 ms to 2.63 ms at 1k blocks (7.05x faster)
    • Cut the same path from 118.54 ms to 4.92 ms at 5k blocks (24.10x faster)
    • Let @platejs/core batch live nodeId normalization instead of paying one setNodes call per missing id
    • Keep editor.tf.setNodesBatch explicitly temporary. It is experimental and will be removed in a future release
  • Updated plite-hyperscript. (231b986)

@platejs/table

Bug Fixes

  • Speed up unmerged table range selection while preserving merged-cell handling (#4987)

@platejs/utils

Bug Fixes

  • Updated @platejs/core, plitejs.

v53.0.6...v53.0.7 · By @zbeyens, @github-actions[bot]

v53.0.6

@platejs/core

Bug Fixes

  • Fix .configure({ inputRules }) losing rules on subsequent editor instances (#4983)

    The user's config object was shared across resolutions via closure; clearing inputRules on the first resolve left later editors (StrictMode remounts, HMR, multi-editor pages) with no configured rules.

  • Fix createTextSubstitutionInputRule not firing on the final character of flat matches (e.g. -> → →, (c) → ©) (#4983)

platejs

Bug Fixes

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

@platejs/utils

Bug Fixes

  • Updated @platejs/core.

v53.0.5...v53.0.6 · By @bbyiringiro

v53.0.3

@platejs/ai

Bug Fixes

  • Clear block streaming state when aiChat.stop() stops generation (#4945)

@platejs/link

Bug Fixes

  • Fix empty link normalization when suggestion acceptance removes the last link character (#4945)

platejs

Bug Fixes

  • Updated @platejs/utils.

@platejs/suggestion

Bug Fixes

  • Fix inline-void delete and replace suggestions around mentions and paragraph boundaries (#4945)

@platejs/utils

Bug Fixes

  • Add a trailing-block insert hook for normalization-driven insert behavior (#4945)

CHANGELOG · v53.0.2...v53.0.3 · By @felixfeng33

Plate UI

PR 4945 · [codex] Fix discussion and suggestion regressions
behavior
block-discussiondiscussion-kitcomment-kit

Rebuild discussion indexes from editor state so accept and reject updates, inline text summaries, and deleted comments stay current.

fix
suggestionsuggestion-base-kitsuggestion-kitsuggestion-node

Fix block and inline suggestion regressions around inline voids, links, line breaks, block voids, and trailing-block normalization.

behavior
block-listcode-drawing-nodedate-nodeequation-nodeexcalidraw-nodemedia-audio-nodemedia-embed-nodemedia-file-nodemedia-image-nodemedia-video-nodemention-nodelink-node

Keep Plite children mount points and suggestion wrappers stable for static and media-style nodes.

v53.0.0

@platejs/autoformat

Breaking Changes

  • Deprecate @platejs/autoformat. Markdown shortcuts and text substitutions are now authored as inputRules on each feature plugin, and AutoformatPlugin remains only as an inert compatibility export. (#4941)

    Migration:

    1. Remove AutoformatPlugin from your plugins and replace @platejs/autoformat after migrating rules.
    2. Replace each old AutoformatRule with the matching rule factory on the plugin that owns the feature. See the table below.
    3. Replace symbol substitutions (arrows, fractions, smart quotes, legal, math operators) with createTextSubstitutionInputRule registered on a local createBasePlugin.
    4. Replace rules[].query with enabled on the rule factory call. Replace the global code-block guard with a per-plugin enabled check.
    5. Drop enableUndoOnDelete — undo-on-delete is the built-in behavior.
    6. Replace custom AutoformatRule definitions with createRuleFactory from platejs.
    // Before
    import { AutoformatPlugin } from "@platejs/autoformat";
     
    const editor = createPlateEditor({
      plugins: [
        AutoformatPlugin.configure({
          options: {
            enableUndoOnDelete: true,
            rules: [
              { match: "# ", mode: "block", type: KEYS.h1 },
              { match: "**", mode: "mark", type: KEYS.bold },
              {
                match: "* ",
                mode: "block",
                type: "list",
                format: (editor) =>
                  toggleList(editor, { listStyleType: KEYS.ul }),
              },
            ],
          },
        }),
      ],
    });
     
    // After
    import { BoldRules } from "@platejs/basic-nodes";
    import { BoldPlugin } from "@platejs/basic-nodes/react";
    import { HeadingRules } from "@platejs/basic-nodes";
    import { H1Plugin } from "@platejs/basic-nodes/react";
    import { BulletedListRules } from "@platejs/list";
    import { ListPlugin } from "@platejs/list/react";
     
    const editor = createPlateEditor({
      plugins: [
        H1Plugin.configure({ inputRules: [HeadingRules.markdown()] }),
        BoldPlugin.configure({
          inputRules: [BoldRules.markdown({ variant: "*" })],
        }),
        ListPlugin.configure({
          inputRules: [BulletedListRules.markdown({ variant: "-" })],
        }),
      ],
    });

    Rule Map

    Basic blocks — @platejs/basic-nodes

    Old ruleNew rule
    { match: '# '..'###### ', mode: 'block', type: KEYS.h1..h6 }HxPlugin.configure({ inputRules: [HeadingRules.markdown()] }) — register on each H1Plugin..H6Plugin
    { match: '> ', mode: 'block', type: KEYS.blockquote }BlockquotePlugin.configure({ inputRules: [BlockquoteRules.markdown()] })
    { match: ['---', '—-', '___ '], mode: 'block', type: KEYS.hr }HorizontalRulePlugin.configure({ inputRules: [HorizontalRuleRules.markdown({ variant: '-' }), HorizontalRuleRules.markdown({ variant: '_' })] })

    Basic marks — @platejs/basic-nodes

    Old ruleNew ruleOwning plugin
    { match: '**', mode: 'mark', type: KEYS.bold }BoldRules.markdown({ variant: '*' })BoldPlugin
    { match: '__', mode: 'mark', type: KEYS.underline }UnderlineRules.markdown()UnderlinePlugin
    { match: '*', mode: 'mark', type: KEYS.italic }ItalicRules.markdown({ variant: '*' })ItalicPlugin
    { match: '_', mode: 'mark', type: KEYS.italic }ItalicRules.markdown({ variant: '_' })ItalicPlugin
    { match: '`', mode: 'mark', type: KEYS.code }CodeRules.markdown()CodePlugin
    { match: '~~', mode: 'mark', type: KEYS.strikethrough }StrikethroughRules.markdown()StrikethroughPlugin
    { match: '~', mode: 'mark', type: KEYS.sub }SubscriptRules.markdown()SubscriptPlugin
    { match: '^', mode: 'mark', type: KEYS.sup }SuperscriptRules.markdown()SuperscriptPlugin
    { match: '==', mode: 'mark', type: KEYS.highlight }HighlightRules.markdown({ variant: '==' })HighlightPlugin
    { match: '≡', mode: 'mark', type: KEYS.highlight }HighlightRules.markdown({ variant: '≡' })HighlightPlugin
    { match: '***', mode: 'mark', type: [bold, italic] }MarkComboRules.markdown({ variant: 'boldItalic' })BoldPlugin
    { match: '__*', mode: 'mark', type: [underline, italic] }MarkComboRules.markdown({ variant: 'italicUnderline' })BoldPlugin
    { match: '__**', mode: 'mark', type: [underline, bold] }MarkComboRules.markdown({ variant: 'boldUnderline' })BoldPlugin
    { match: '___***', mode: 'mark', type: [underline, bold, italic] }MarkComboRules.markdown({ variant: 'boldItalicUnderline' })BoldPlugin

    Register each family on its owning plugin:

    BoldPlugin.configure({
      inputRules: [
        BoldRules.markdown({ variant: "*" }),
        BoldRules.markdown({ variant: "_" }),
        MarkComboRules.markdown({ variant: "boldItalic" }),
        MarkComboRules.markdown({ variant: "boldUnderline" }),
        MarkComboRules.markdown({ variant: "boldItalicUnderline" }),
        MarkComboRules.markdown({ variant: "italicUnderline" }),
      ],
    });

    Code block — @platejs/code-block

    Old ruleNew rule
    { match: '```', mode: 'block', type: KEYS.codeBlock, format: insertEmptyCodeBlock }CodeBlockPlugin.configure({ inputRules: [CodeBlockRules.markdown({ on: 'match' })] })
    Old ruleNew rule
    { match: ['- ', '* '], mode: 'block', format: toggleList(..., { listStyleType: KEYS.ul }) }BulletedListRules.markdown({ variant: '-' }), BulletedListRules.markdown({ variant: '*' })
    { match: /^\d+\.$ |^\d+\)$ /, matchByRegex: true, format: toggleList(..., { listStyleType: KEYS.ol }) }OrderedListRules.markdown({ variant: '.' }), OrderedListRules.markdown({ variant: ')' })
    { match: '[] ', mode: 'block', format: toggleList(..., { listStyleType: KEYS.listTodo }) }TaskListRules.markdown({ checked: false })
    { match: '[x] ', mode: 'block', format: toggleList + setNodes({ checked: true }) }TaskListRules.markdown({ checked: true })
    ListPlugin.configure({
      inputRules: [
        BulletedListRules.markdown({ variant: "-" }),
        BulletedListRules.markdown({ variant: "*" }),
        OrderedListRules.markdown({ variant: "." }),
        OrderedListRules.markdown({ variant: ")" }),
        TaskListRules.markdown({ checked: false }),
        TaskListRules.markdown({ checked: true }),
      ],
    });

    Math — @platejs/math

    Old ruleNew rule
    Inline equation $…$InlineEquationPlugin.configure({ inputRules: [MathRules.markdown({ variant: '$' })] })
    Block equation $$…$$EquationPlugin.configure({ inputRules: [MathRules.markdown({ on: 'break', variant: '$$' })] })

    Link — @platejs/link

    Old behaviorNew rule
    [text](url) markdownLinkRules.markdown()
    Autolink on pasteLinkRules.autolink({ variant: 'paste' })
    Autolink on spaceLinkRules.autolink({ variant: 'space' })
    Autolink on EnterLinkRules.autolink({ variant: 'break' })
    LinkPlugin.configure({
      inputRules: [
        LinkRules.markdown(),
        LinkRules.autolink({ variant: "paste" }),
        LinkRules.autolink({ variant: "space" }),
        LinkRules.autolink({ variant: "break" }),
      ],
    });

    Text substitutions (arrows, fractions, legal, math operators, smart quotes)

    Move these to a local createBasePlugin with createTextSubstitutionInputRule:

    import {
      createBasePlugin,
      createTextSubstitutionInputRule,
      KEYS,
    } from "platejs";
     
    const isTextSubstitutionBlocked = (editor) =>
      editor.api.some({ match: { type: [editor.getType(KEYS.codeBlock)] } });
     
    const ShortcutsPlugin = createBasePlugin({
      key: "shortcuts",
      inputRules: [
        createTextSubstitutionInputRule({
          enabled: ({ editor }) => !isTextSubstitutionBlocked(editor),
          patterns: [
            { format: "→", match: "->" },
            { format: "⇒", match: "=>" },
            { format: "½", match: "1/2" },
            { format: "™", match: ["(tm)", "(TM)"] },
            { format: ["“", "”"], match: '"' },
          ],
        }),
      ],
    });

    Each pattern set is just data — autoformatArrow, autoformatLegal, autoformatMath, autoformatPunctuation, autoformatSmartQuotes, and autoformatLegalHtml from the old package map 1:1 onto patterns arrays. AutoformatKit in the Plate registry is pre-built with all of them.

    Custom rules

    Old AutoformatRule objects have no direct replacement. Build a rule family with createRuleFactory:

    import { createRuleFactory } from "platejs";
     
    const MyRules = {
      markdown: createRuleFactory({
        type: "blockMatch",
        match: "!! ",
        format: "my-block",
      }),
    };
     
    MyPlugin.configure({ inputRules: [MyRules.markdown()] });

    Option removals

    • enableUndoOnDelete — removed. Backspace on a rule-inserted node restores the source text by default.
    • rules[].query — replaced by enabled on the rule factory call.
    • rules[].preFormat / rules[].format — replaced by rule-family format and resolve callbacks inside createRuleFactory.
    • rules[].trigger — rule families set their own trigger. Override it with the trigger option on a custom createRuleFactory call.

    See the Autoformat doc for the kit path and the Plugin Input Rules guide for the full runtime.

@platejs/basic-nodes

Breaking Changes

  • Store blockquotes as container blocks with block children. Lift every selected nested quoted block one level on Shift+Tab. Reset headings to paragraphs on Backspace at block start before any merge. (#4941)

    Migration:

    1. Update persisted values, fixtures, and tests to use block children instead of direct text children.
    2. Expect editor.tf.blockquote.toggle() to wrap or unwrap blocks instead of retagging one text block in place.
    3. Empty later quoted paragraphs delete in place on Backspace instead of jumping out of the quote.
    4. Backspace at the start of a heading now resets the heading to a paragraph before any merge.
    5. Legacy flat blockquote values still normalize on load, but persisted snapshots and fixtures should move to the new shape.
    // Before
    { type: 'blockquote', children: [{ text: 'Quote' }] }
     
    // After
    {
      type: 'blockquote',
      children: [{ type: 'p', children: [{ text: 'Quote' }] }],
    }

@platejs/code-block

Breaking Changes

  • Keep Backspace at the start of a non-empty first code line inside the code block. Merge an empty inner code line into the previous code line instead of unwrapping the block. (#4941)

@platejs/markdown

Breaking Changes

  • Round-trip blockquotes as nested block content instead of flat newline-packed text. Serialize image titles from node.title instead of copying the caption into the markdown title slot. Preserve MDX media attribute expressions during markdown serialization instead of stringifying them into JSON text. Serialize plain URL links back to bare URL markdown instead of bracket-link form. Round-trip footnote references and definitions as dedicated footnote nodes instead of collapsing them to plain-text fallback. (#4941)

    Migration:

    1. Update snapshots and direct value assertions to expect blockquote.children to contain block nodes such as paragraphs and lists.
    2. If you generate initial editor values from markdown, hydrate blockquotes with paragraph children instead of flat text.
    3. If you want markdown output like ![alt](url "title"), set node.title. Images without a title now serialize as ![alt](url).
    4. If you serialize MDX media nodes with expression attributes like width={640}, expect those expressions to stay as expressions instead of turning into quoted JSON.
    5. Plain URL links such as https://platejs.org now serialize as bare URLs instead of [https://platejs.org](https://platejs.org).
    6. If you enable footnote-aware markdown input, install @platejs/footnote and include BaseFootnoteReferencePlugin and BaseFootnoteDefinitionPlugin so footnote nodes have real editor semantics instead of falling back to unknown node types.
    // Before
    { type: 'blockquote', children: [{ text: 'Quote\\nNext line' }] }
     
    // After
    {
      type: 'blockquote',
      children: [
        { type: 'p', children: [{ text: 'Quote' }] },
        { type: 'p', children: [{ text: 'Next line' }] },
      ],
    }

Bug Fixes

  • Write canonical date nodes as <date value="..."/> and round-trip normalized media embed metadata (#4941)

  • Preserve unknown MDX and raw HTML block source more faithfully during markdown deserialization fallback (#4941)

@platejs/table

Breaking Changes

  • Escalate the second selectAll from the current table to the whole document. (#4941)

@platejs/core

Features

  • Add lift as a break and delete rule action for blocks that should leave one ancestor level instead of resetting or exiting. Reset the trailing block to a paragraph when splitReset handles selected heading text. (#4941)

Bug Fixes

  • Add createRuleFactory for building input rule families with overridable defaults and required options (#4941)

  • Add useNavigationHighlight(path) for React node components that need the current navigation-feedback target without reading plugin options directly (#4941)

@platejs/footnote

Features

  • Add FootnoteReferencePlugin, FootnoteDefinitionPlugin, and FootnoteInputPlugin for real footnote nodes and inline [^ combobox insertion in Plate editors. (#4941)

@platejs/date

Bug Fixes

  • Store date nodes as canonical YYYY-MM-DD values and preserve unparseable legacy text as fallback data (#4941)

@platejs/link

Bug Fixes

  • Keep pasted URLs literal inside markdown link source entry by default (#4941)

@platejs/list

Bug Fixes

  • Allow list markdown rule families to override shared runtime rule fields while keeping semantic variant and checked options (#4941)

@platejs/media

Bug Fixes

  • Support allowlisted Twitter/X embed snippet extraction in media embed URL transforms (#4941)

  • Normalize supported media embeds into canonical provider metadata and preserve source URLs for embed editing (#4941)

plitejs

Bug Fixes

  • Updated slate, plite-dom. (081cbe9)

@platejs/toc

Bug Fixes

  • Add active section state to useTocElementState so TOC elements can mark the current heading while the document scrolls (#4941)

  • Fix TOC activation to navigate without entering block-selection mode (#4941)

@platejs/utils

Bug Fixes

  • Add KEYS.footnoteDefinition, KEYS.footnoteReference, and KEYS.footnoteInput (#4941)

CHANGELOG · v52.3.22...v53.0.0 · By @zbeyens, @github-actions[bot]

Plate UI

PR 4941 · fix: redesign blockquotes as container blocks
new
footnote-kit

Add GFM footnotes with reference, definition, and input plugins plus UI — hover preview, navigation flash, multi-reference picker, and duplicate-definition recovery.

new
footnote-base-kit

Add static footnote rendering for SSR and markdown pipelines.

new
editor-kiteditor-base-kit

Register the new footnote kits.

wiring
markdown-kit

Register the base footnote plugins and add remark-emoji so GFM footnotes and emoji shortcodes round-trip.

behavior

Add a Footnote insert entry wired to action_footnote.

wiring
transforms

Map action_footnote to insertFootnote(editor, { select: true }).

behavior
autoformat-kit

Reduce to symbol substitutions (arrows, fractions, legal, punctuation, smart quotes, sub/superscript). Markdown shortcuts move to the feature kits below. Add link automd so [text](url) closing on ) resolves to a structured link.

Older releases