Setting headlines button in textarea

Hi, is possible to chose which header level (h1–h3) can be under “headlines” button?

I’m using this:

buttons:
    - headlines
    - '|'
    - bold
    - italic
    - '|'
    - link
    - email
    - '|'

Bu, it would be nice to have something like this:

buttons:
    - headlines
        - h2
        - h3

Thanks!

Yes, that would be nice but there is no setting for that. I recently tried to hide some entries via CSS as a workaround, but didn’t succeed.

I suggest using https://github.com/sylvainjule/kirby-markdown-field for this.

Besides the headlines button settings, this field has a lot of improvements to the core textarea. There actually is an open issue marked with Prio: high about adding this feature to the core textarea, but it’s quite old.

1 Like

Thanks, it looks well!

One thing to note is that as far as I know the markdown field doesn’t support file upload yet? I might be mistaken, but last time I checked I didn’t see it…

I agree that this would be a nice, almost essential feature.

I’ve been able to hide the h1 button this way, not ideal though:

.k-textarea-input button.k-dropdown-item.k-button:nth-of-type(1) {display:none;}

If I’m not mistaken, it will be possible to customize inline styles in Kirby 3.4.

1 Like

Just ran into this issue again one year after posting here so I’m giving it a gentle bump… :stuck_out_tongue_winking_eye:

2 Likes

ha, stumbled upon this yet again… :grimacing: :grin: