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