tiptap/packages/extension-heading/src
Britta Weiland 77095c4d52
fix: export type Level for external use (#2354)
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>
2022-01-05 09:15:47 +01:00
..
heading.ts fix: export type Level for external use (#2354) 2022-01-05 09:15:47 +01:00
index.ts refactor: recreate extension exports 2020-12-07 21:32:50 +01:00