tiptap/.changeset/clever-bags-end.md
Nick Perez 8de8e13b08
fix(core): add even more strict types for Nodes, Marks, and Extensions (#6182)
* fix: update the `AnyExtension` type to use the new base type `Extendable`

* fix: use the more specific config sub-types for Marks, Nodes and Extensions

* feat: add the ability to unmount an editor instance, without having to destroy and recreate it

* fix: return more specific types for configure and extend on Marks, Nodes, and Extensions

* refactor: minor cleanup

* chore: add changeset

---------

Co-authored-by: bdbch <6538827+bdbch@users.noreply.github.com>
2025-03-28 12:13:26 +01:00

368 B

@tiptap/core
minor

The editor instance now supports an unmount method which allows for mounting and unmounting the editor to the DOM. This encourages re-use of editor instances by preserving all the same options between instances. This is different from the destroy method, which will unmount, emit the destroy event, and remove all event listeners.