mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 17:43:49 +08:00

* 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>
368 B
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.