@tiptap/core
3.35.0 · 20 Nov 2026MIT39.5M / weekRepositoryHomepagenpmAtom feed
Upgrading @tiptap/core From 3.6.2 to 3.30.4
72 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking3.7.1
Security
1 advisory still affects 3.30.4
- Tiptap: Quadratic ReDoS in block and inline Markdown attribute parsinghigh · GHSA-j95f-988m-3j2f
Upgrading to 3.30.5 clears it.
Fixes 1 advisory affecting 3.6.2
- Tiptap: mergeAttributes() turns an own __proto__ key into inherited executable DOM attributesmoderate · GHSA-cp6q-959q-f8rh
- 3.7.2
Fix CVE-2025-62410 by updating happy-dom to ^20.0.2
- 3.6.7
Fix CVE-2025-61927 by bumping happy-dom to 20.0.0
Release by release
- Fixed
Prevent untrusted HTML attributes from changing an object's prototype when merged with
mergeAttributes.
- Fixed
- Fixed
Fix JSX runtime to properly render nested sibling elements by spreading children arrays into DOMOutputSpec
- Fixed
- Fixed
Keep mixed JSX children as separate siblings in DOM output.
- Fixed
Fixed a bug where
editor.chainandeditor.cancan not be accessed on editor initialization
- Fixed
- New
Added new ProseMirror helpers that check whether a value is a specific ProseMirror type.
- New
- New
ListKeymapnow registers aTabshortcut that sinks a top-level textblock into the previous list's last item. Pressing Tab at the start of a paragraph right after a bullet/ordered/task list moves the paragraph inside the last list item. The handler does nothing when the cursor is already inside a list item (sinkListItemkeeps working), when there is no list before the paragraph, when the caret is mid-textblock, or when the selection is not a text selection (for example a gap cursor). - New
- New
- New
- New
- Fixed
Fixed
insertContent,insertContentAtandsetContentfailing when prosemirror-model is loaded more than once.
- New
3.29.1 – 3.29.22 releases, nothing new or fixed in the notes
- New
Add
insertDefaultBlockto insert the default textblock allowed at a position. It accepts an optional position, attributes, content, and selection-update option. - Fixed
Fix a TypeScript build error in
isAndroid()where comparingnavigator.platformagainst the literal'Android'with===could fail to compile under somelib.dom.d.tstypings ("types have no overlap"). Switched to the same.includes()pattern already used byisiOS(), which is not affected by this TypeScript narrowing issue. No runtime behavior change. - Fixed
Fixed a bug where deleting an
AllSelection(for example right after Ctrl/Cmd+A) left a lingering "phantom" selection highlight over the emptied document instead of a text cursor.deleteSelectionnow collapses the selection to a cursor. - Fixed
Fix input rules crashing when the matched text spans an inline atom node like a mention.
- Fixed
Node view
getPos()now returnsundefinedinstead of throwing when the position cannot be resolved yet, for example when React 19 renders a node view component while the editor view is still updating. - Fixed
Fixed
onContentErrorthrowing when callingeditor.commandsfrom inside the handler on initial load with invalid content. The editor now has a usable state (seeded from the stripped fallback document) beforeonContentErrorfires. - Fixed
Fix
editor.$pos()returning the wrong node inside container nodes, for example the list item instead of the list.
- New
3.28.0nothing new or fixed in the note
6 other lines we could not sort, mostly version bumps
- 3.7.0
editor.getMarkdown(): Serialize current editor content to Markdown string - 3.7.0
editor.markdown: Access to MarkdownManager instance for advanced operations - 3.7.0
contentType: Control the type of content that is inserted into the editor. Can bejson,htmlormarkdown- defaults tojsonand will automatically detect invalid content types (like JSON when it is actually Markdown). - 3.7.0
setContent(markdown, { contentType: 'markdown' }): Replace editor content with markdown - 3.7.0
insertContent(markdown, { contentType: 'markdown' }): Insert markdown at cursor position - 3.7.0
insertContentAt(position, markdown, { contentType: 'markdown' }): Insert Markdown at specific position
30 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.