fabianmichael / kirby-markdown-field

Super-sophisticated markdown editor for Kirby 3, community built.
Other
160 stars 14 forks source link

How to set the headlinebuttons in a global config? #99

Closed janstieler closed 3 years ago

janstieler commented 4 years ago

Hi, how can I reduce the headline buttons in the global configuration? In your readme is only a instruction for all headline buttons. I don't need a H1-button.

Cheers

matthacksteiner commented 3 years ago

Any news on this? Would love to have this option...

cadars commented 3 years ago

This works, except the headlines button is now last?

 'community.markdown-field.buttons' => [
    'headlines' => ['h2', 'h3', 'h4'], 'bold', 'italic', 'divider', 'ul', 'ol', 'footnote', 'code', 'divider', 'link', 'email'
 ], 

image

sylvainjule commented 3 years ago

You can set it like this (replacing 'headlines' with an array of headings like ['h2', 'h3', 'h4']):

'community.markdown-field' => [
    'buttons' => [['h2', 'h3', 'h4'], 'bold', 'italic', '...'],
]
janstieler commented 1 year ago

It would be create if this will be als owritten in the manual.

janstieler commented 1 year ago

Does this work further? with:

    'community.markdown-field' => [
        'buttons' => [['h2', 'h3', 'h4', 'h5', 'h6'], 'bold', 'italic', 'strikethrough', 'code', 'ul', 'ol', 'link', 'blockquote', 'hr', 'strikethrough', 'highlight', 'pagelink', 'file', 'footnote', 'invisibles', 'divider'],
    ],

I get only the standard buttons displayed and not all.