Markdown Toolbar Buttons

Are these all the available toolbar buttons for the markdown component, or just the default applied? Hoping for H2 and H3 heading tags. >"You may set the toolbar buttons for the editor using the toolbarButtons() method. The options shown here are the defaults:"
MarkdownEditor::make('content')
->toolbarButtons([
'attachFiles',
'blockquote',
'bold',
'bulletList',
'codeBlock',
'heading',
'italic',
'link',
'orderedList',
'redo',
'strike',
'table',
'undo',
])
MarkdownEditor::make('content')
->toolbarButtons([
'attachFiles',
'blockquote',
'bold',
'bulletList',
'codeBlock',
'heading',
'italic',
'link',
'orderedList',
'redo',
'strike',
'table',
'undo',
])
5 Replies
awcodes
awcodes7d ago
Yes, the default is the default. What exactly are you trying to do?
Batman
BatmanOP7d ago
Articles to be submitted/created in markdown. Would like to have the option of H2 and H3 as sub headings. I also see some older questions on preview for v3 and it appears that it was set as not planned in github. Is the pboivin/filament-peek:"^2.0" still the best alternative to in editor preview? It works fine if you edit it and know markdown, just would like buttons for those that don't.
toeknee
toeknee6d ago
Just click the heading icon twice for a H2, and 3 times for a h3..
Batman
BatmanOP6d ago
While this does work, we are talking about users. I guess I ll have to put up instructions, but that defeats the purpose of a wysig in my opinion.
toeknee
toeknee6d ago
See for V4: https://github.com/filamentphp/filament/discussions/1294 We will be using commonmark by the looks of it, which should aid making such changes easier.
GitHub
Custom Markdown editor · filamentphp filament · Discussion #1294
Hi, It would be nice if we could extend the new markdown editor with custom implementation such as video tag support and so on… I don't know what's under the hood, but it would be very conv...

Did you find this page helpful?