Releases: ueberdosis/tiptap
v3.6.3
Releases
v3.6.3
@tiptap/react
Patch Changes
- Updated the React
FloatingMenuplugin hook dependencies to match theBubbleMenubehavior.
The FloatingMenu will now respond to changes inappendTo,pluginKey,shouldShow, andoptions. - Resolved an issue where the React BubbleMenu did not update when FloatingUI option props changed after initial mount. The BubbleMenu now correctly responds to updated option props.
- Improved the BubbleMenu's usability by ensuring the
appendToprop passed to the React BubbleMenu component is now correctly forwarded to the underlying bubble menu plugin. This fix allows developers to customize where the BubbleMenu is attached in the DOM, helping resolve issues with positioning and portal setups in React apps.
@tiptap/extensions
Patch Changes
- The Selection extension now uses the correct SelectionOptions type, providing accurate typings for its options.
@tiptap/extension-code-block
Patch Changes
- Configuration options for the CodeBlock extension now support
nullandundefinedvalues.
This makes custom setups more flexible and avoids unnecessary type errors when omitting optional overrides.
All existing default values and fallback logic remain in place - no breaking changes for existing code.
@tiptap/core
Patch Changes
- Refined the
JSONContent.attrsdefinition to exactly mirror the structure returned byeditor.getJSON(). This ensures strict type safety and consistency between the editor output and the expected type, eliminating errors caused by mismatched attribute signatures.
@tiptap/extension-table-of-contents
Patch Changes
- Improve typings by inferring the storage type for the Table of Contents extension
@tiptap/extension-floating-menu
Patch Changes
- You can now pass a callback to the
appendTooption in the floating and bubble menu
extensions. The callback must return an element synchronously,
so menus can be appended to elements that are created dynamically.
@tiptap/extension-bubble-menu
Patch Changes
- You can now pass a callback to the
appendTooption in the floating and bubble menu
extensions. The callback must return an element synchronously,
so menus can be appended to elements that are created dynamically.
v3.6.2
v3.6.1
v3.6.0
Releases
v3.6.0
@tiptap/core
Patch Changes
-
Improve typing and docs for
EditorOptions.elementto reflect all supported mounting modes and align behavior across adapters.elementnow accepts:Element: the editor is appended inside the given element.{ mount: HTMLElement }: the editor is mounted directly tomount(no extra wrapper).(editorEl: HTMLElement) => void: a function that receives the editor element so you can place it anywhere in the DOM.null: no automatic mounting.
@tiptap/extension-table
Patch Changes
-
Parse cell
colwidthfrom nearest<colgroup>when missing on the cellWhen importing HTML, table column widths are often declared on a surrounding
<colgroup>rather than on each<td>. Previously,tableCellonly read thecolwidthattribute from the cell itself and would lose width information in that case. The implementation now falls back to reading the corresponding<col>'swidthfrom the table's<colgroup>using the cell's index.This is a non-breaking bugfix that preserves layout information when HTML uses
<colgroup>. Consider adding a small demo or unit test to assert colwidth is preserved for cells when only the<colgroup>contains width attributes. -
Fixes table wrapper replacement and lost selections when
resizable: true.TableView.ignoreMutation now ignores attribute/childList/characterData mutations that occur inside the table wrapper but outside the editable
contentDOM, preventing wrapper re-creation during resize interactions so selections (e.g.mergeCells()) are preserved.No API or breaking changes.
@tiptap/extension-bubble-menu
Patch Changes
-
Remove recently added
updateBubbleMenuPositionmethod because it would not work in the React and Vue versions of the BubbleMenu, only in the vanilla extension. And that would confuse developers.Write the
transactionHandlermethod as an arrow function because arrow functions have nothis, so thethisremains the instance of theBubbleMenuViewclass.
@tiptap/extension-unique-id
Minor Changes
-
Create a utility to add unique IDs to a document in the server
The utility is called
generateUniqueIdsand is exported from the@tiptap/extension-unique-idpackage.It has the same functionality as the
UniqueIDextension, but without the need to create anEditorinstance. This lets you add unique IDs to the document in the server.It takes the following parameters:
doc: The Tiptap JSON document to add unique IDs to.extensions: The extensions to use. Must include theUniqueIDextension.
It returns the updated Tiptap JSON document, with the unique IDs added to the nodes.
@tiptap/vue-3
Minor Changes
- Pass
attrsthrough Vue 3 menus
v3.5.3
Releases
v3.5.3
@tiptap/extension-text-style
Patch Changes
-
Merge nested span styles only for immediate child spans and guard style values.
- Replace non-standard/fragile selector approach and avoid re-processing nested
<span>elements. - Read parent style once, merge with child style only when present, and remove empty
styleattributes. - Improves parsing performance and robustness in browsers, Node/JSDOM and tests.
This change fixes a bug that could cause exponential work when parsing deeply
nested<span>elements - in extreme cases that could make the tab unresponsive
or crash the renderer. It is a bugfix / performance improvement with no public API
changes. - Replace non-standard/fragile selector approach and avoid re-processing nested
v3.5.2
v3.5.1
@tiptap/extension-floating-menu
Patch Changes
- Add
appendTosupport toFloatingMenuand pass it through in React/Vue 2/Vue 3 for bothBubbleMenuandFloatingMenuto allow fixing clipping/z-index issues.
@tiptap/react
Patch Changes
- Add
appendTosupport toFloatingMenuand pass it through in React/Vue 2/Vue 3 for bothBubbleMenuandFloatingMenuto allow fixing clipping/z-index issues.
@tiptap/vue-2
Patch Changes
- Add
appendTosupport toFloatingMenuand pass it through in React/Vue 2/Vue 3 for bothBubbleMenuandFloatingMenuto allow fixing clipping/z-index issues.
@tiptap/vue-3
Patch Changes
- Add
appendTosupport toFloatingMenuand pass it through in React/Vue 2/Vue 3 for bothBubbleMenuandFloatingMenuto allow fixing clipping/z-index issues.
v3.5.0
Releases
@tiptap/[email protected]
Minor Changes
- 8fa5955: Add
updateBubbleMenuPositioncommand to update position of bubble menu. This command lets developers programmatically update the position of the bubble menu in response to certain events (for example, when the bubble menu is resized).
@tiptap/[email protected]
Minor Changes
- daa51c4: Add
getReferencedVirtualElementoption to the drag handle extension to customize the position of the drag handle.
Patch Changes
- 3eb5360: Fixed
findElementNextToCoordsreturning incorrect nodes when the position is at a node boundary. The function now correctly identifies leaf nodes (like images, horizontal rules) by checking$pos.nodeAfterbefore falling back to the parent node lookup.
@tiptap/[email protected]
Patch Changes
- d56c9dd: Fix Vue2 menus visibility bug.
v3.4.6
Releases
@tiptap/[email protected]
Patch Changes
-
968016f: Added support for the
undoableoption in InputRules (matching ProseMirror’s implementation).- When
false, the change will not be tracked as undoable. - Default remains
truefor backward compatibility.
This brings Tiptap’s InputRules behavior in line with ProseMirror and gives developers finer control over undo functionality.
- When
v3.4.5
Releases
@tiptap/[email protected]
Patch Changes
- 0226d42: Fix an issue where injected CSS was not mounted correctly when the editor instance was mounted. The fix ensures CSS injected by the editor is attached to the document when the editor mounts, preventing missing styles in some mount/unmount scenarios.
- 37af83b: refactor: replace
map(...).flat()withflatMapfor simpler, more efficient array flattening - f598ac7: Fix bug in
insertContentAtcommand where extra content would get deleted when the selection was at the beginning of the document and a node was inserted
@tiptap/[email protected]
Patch Changes
- 13fb996: refactor: replace
map(...).flat()withflatMapfor simpler, more efficient array flattening
@tiptap/[email protected]
Patch Changes
- 82121b8: refactor: replace
map(...).flat()withflatMapfor simpler, more efficient array flattening
@tiptap/[email protected]
Patch Changes
-
f472c5b: Use a named import for Suggestion from
@tiptap/suggestionto avoid bundler ESM/CJS interop
wrapping (__toESM) that caused Jest/CJS consumers to receive a module object instead of the
callable plugin factory.This is a non-breaking internal fix. It keeps runtime module shape stable for CommonJS (Jest)
and prevents the TypeError thrown when the extension attempted to call a non-function.
@tiptap/[email protected]
Patch Changes
- bfcd958: refactor: replace
map(...).flat()withflatMapfor simpler, more efficient array flattening