v3.35.0
nodeInputRulewith a capture group no longer inserts the last typed character twice when the rule runs on text input.
- Added the
openWithoutDelayoption. With it, a Details created open shows its content as soon as it is drawn, instead of one tick later, so code that measures right after drawing reads the full height. It is off by default and only has an effect together withpersist.
- Preserve deleted elements' original attributes and text when comparing collaboration snapshots.
- Make typing in large collaborative documents faster by skipping unchanged content that comes before the edit.
v3.34.0
getEditorContextnow describes the charts and diagrams of@tiptap-pro/extension-diagrams, so the AI can read, add and change them.
- Fix Backspace undo after automatic formatting when used with extensions such as UniqueID.
- Correct
setContentdocumentation
- Keep the caret at the join when Backspace merges a paragraph into the blockquote above it.
- A Details node created open now stays open when its content changes right after it is created.
- Declare
@types/reactas an optional peer dependency so React types resolve under pnpm's global virtual store.
- Added a
continuesNodeoption. Textblocks it marks as continuing the textblock before them are searched as one text, so a phrase that runs from one into the next is found, highlighted and replaced.
- Fix React type resolution when using pnpm’s global virtual store.
v3.33.1
- Deleting a text selection that spans the whole document no longer leaves the deleted text's marks active, so text typed into the emptied editor is no longer bold, linked or otherwise marked.
- The first
goToNextResult()orgoToPreviousResult()after a new search now selects the highlighted first result instead of skipping it.
yCursorPluginnow publishes alastSelectionawareness field with each collaborative field's latest selection and whether its editor is focused. Unlikecursor, it stays after the editor loses focus, so other clients can still read the selection.lastSelectionis now reserved and can't be used as the cursor field.
v3.33.0
-
With
enableContentCheck: true, shared content that does not fit the editor schema now emitscontentErrorinstead of being deleted. The editor pauses editing and sends no changes until compatible content arrives, so read-only users no longer send repairs that the server rejects.If you use
enableContentCheckwith collaboration and want the editor to keep repairing invalid content, turn the content check off.
- Add the
onInvalidContentsync option. When it is set, shared content that does not fit the editor schema stays in the shared document instead of being deleted. The editor shows what it can, pauses editing and sends no changes until compatible content arrives.
v3.32.3
- Clearing formatting on a nested list now turns every level into paragraphs, and
clearNodes()works in a chain with other node commands. - Stop removed resizable node views from responding to later editor updates.
- Bubble menus now update correctly after IME input, including Korean text
- Fixed a performance issue where code highlighting updates were unnecessarily triggered by selection-only changes
- Floating menus now update correctly after IME input, including Korean text
- Pasting a link without a protocol now uses the
defaultProtocoloption instead of always falling back tohttp.
- The Placeholder extension no longer leaves placeholders behind on empty nodes after the cursor moves away when
includeChildrenis enabled.
- Fix a React warning when a command like
setContentcreates React node views from inside an effect. - Fixed the cursor no longer following clicks after an editor inside a shadow root was unmounted and remounted.
- Fixed the cursor no longer following clicks after an editor inside a shadow root was unmounted and remounted.
- Fixed the cursor no longer following clicks after an editor inside a shadow root was unmounted and remounted.
-
Remove persistent position migrations to stop structural edits and undo or redo from adding migration history to collaborative documents. Saved relative positions no longer follow content that structural edits replace or move.
Existing migration entries are deleted when an editor opens and when later Yjs updates arrive. Yjs can reclaim their stored data when garbage collection is enabled. Document content and other shared data are unchanged. Upgrade all collaborating clients to stop older clients from writing new entries.
Documents that the server refuses to load need cleanup on the server before a client can repair them. With Yjs garbage collection disabled, deleting entries does not reclaim their stored data.
v3.32.0
- A literal
!directly before a link is now escaped when serializing to Markdown, so the link is no longer parsed back as an image.
- Update ProseMirror dependencies to their latest versions.
- Fix
useEditorStateoverflowing the stack when a selector returns a value with circular references, such aseditor.stateafter one stored mark replaces another.
- Add the
schemaSpeceditor option to use an external ProseMirror schema structure with local extension behavior.
- Fix list toggling between list types that use different item nodes. Nested lists are recursively converted when the target item schema supports nesting, and flattened into sibling items when it does not.
-
Keep relative text and node positions attached through structural edits, node moves, and undo or redo across collaborating clients.
-
Improve TypeScript definitions for document synchronization, shared cursors, undo, redo, and document conversions.
-
Improve collaboration performance and keep comments, highlights, caret positions, and remote caret details intact during remote edits.
-
Preserve shared content when a client cannot display its nodes or marks, and pause that client's editing until compatible content is available.
Headless document creation rejects empty content when the schema requires child nodes.
- Keep collaborative editing, cursor presence, and drag handles compatible with the updated
@tiptap/y-tiptapbinding.
- Keep collaborative editing, cursor presence, and drag handles compatible with the updated
@tiptap/y-tiptapbinding.
- Keep collaborative editing, cursor presence, and drag handles compatible with the updated
@tiptap/y-tiptapbinding.
- Keep collaborative editing, cursor presence, and drag handles compatible with the updated
@tiptap/y-tiptapbinding.
v3.31.4
- The mathematics extension no longer crashes the editor in older WebKit browsers and WKWebView.
- Fix a
TypeErrorthrown when the source editor is destroyed right after dragging content into another editor. splitBlockno longer throwsTransformError: Inserted content deeper than insertion positionwhen the selection spans block boundaries (for example from the start of one paragraph into another block, or across an isolating node). The command now returnsfalsewhen the split is not possible.- Prevent extra CSS declarations from being rendered from editor content.
- Atom block directives (
:::name {…} :::) indented by up to 3 spaces are now tokenized, matching CommonMark indentation rules for block constructs. - Numeric HTML entities (
',') are now decoded when parsing markdown, instead of showing up as literal text in the editor. - The editor element keeps
role="textbox"aftersetOptions()wheneditorProps.attributesis set. Before, a re-render in React replaced the default role with the user attributes. Attributes passed as a function now get the default role as well. - Undoing an input rule restores the Markdown characters that triggered it when using Collaboration.
- Bind
parseMarkdownandrenderMarkdownto the configured extension so hooks can readthis.optionsandthis.namewithout an Editor. - Pressing Enter before the text of a checked task item now leaves the new empty item unchecked and the item with the text checked. Attributes declared with
keepOnSplit: falsenow reset on the new item, not on the one that keeps the text. - Stop joinItemForward and joinItemBackward from joining across isolating nodes.
- Node views without a
contentDOMno longer ignore selection mutations, so ProseMirror moves the caret back to a valid position when the browser places it inside the node view.
- Fix Markdown serialization of inline code containing backticks
- Bind
parseMarkdownandrenderMarkdownto the configured extension so hooks can readthis.optionsandthis.namewithout an Editor.
- Fix Markdown serialization of inline code containing backticks
- Table cells exported to Markdown now escape literal pipe characters, so the cell content survives when the output is read back.
- Multi-block table cells no longer leak a U+001F control character into Markdown.
- Right-clicking a cell inside a multi-cell table selection no longer collapses that selection.
- Prevent extra CSS declarations from being rendered from editor content.
- Table cells and headers no longer render the default
colspan="1"androwspan="1"attributes. Cells that actually span still render them, matching how prosemirror-tables serializes spans.
- Parsing large Markdown documents that contain ordered lists is much faster. A 578KB document went from about 19s to about 160ms.
- Prevent extra CSS declarations from being rendered from editor content.
- Prevent extra CSS declarations from being rendered from editor content.
- Prevent extra CSS declarations from being rendered from editor content.
- Prevent extra CSS declarations from being rendered from editor content.
- Typing spaces after a link no longer extends the link, including multiple spaces inserted in one transaction. Formatting changes and undo/redo preserve existing linked whitespace.
- Fix Enter and Shift-Enter inside React node views on iOS and Android.
- React and Vue now use matching menu extension versions when installed from a specific release.
- Render
<audio>and<video>with a closing tag instead of self-closing them, so browsers no longer nest the following content inside the first audio element. - Rendering a node whose
renderHTMLreturns several nested child elements no longer adds stray commas between them in the HTML string output.
- Undoing an input rule restores the Markdown characters that triggered it when using Collaboration.
- React and Vue now use matching menu extension versions when installed from a specific release.
- React and Vue now use matching menu extension versions when installed from a specific release.
v3.31.3
- Fixed a bug which allowed potentially unsafe color values being sent by other clients. Those unsafe colors received from collaboration users are now ignored.
- Fix a TypeScript error (TS2694) in the shipped type declarations when
skipLibCheckis turned off.