mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-25 12:39:03 +08:00
77095c4d52
Export type `Level` to externally work with levels that are passed to the `setHeading` and `toggleHeading` commands, instead of only being able to pass literal numbers. Example: ``` // where `selectedHeadingLevel` changes as part of other logic this.editor.commands.toggleHeading({ level: this.selectedHeadingLevel }) ``` Co-authored-by: Britta Weiland <weiland@bryter.io> |
||
---|---|---|
.. | ||
heading.ts | ||
index.ts |