New minor version: now uses vue-tiptap 1.x
In addition the buttons now respect the exact order in which they are listed in your Nova resource.
For this to work also with headings, there is now a new parameter that can be chained to your resource in addition to "buttons": "headingLevels". Only when you use "heading" as a simple string the heading buttons will not be appended at the end but inserted at the position where you actually want them.
The headingLevels
needs one paramenter: the number of levels, like so headingLevels(6)
.
This is the new format:
Tiptap::make('Cv')
->buttons([
'heading',
'italic',
'bold',
'code',
'link',
'strike',
'underline',
'bullet_list',
'ordered_list',
'code_block',
'blockquote',
])
->headingLevels(6),