Closed luxlogica closed 5 years ago
Found the issue, the problem is that when extending the option, the plugin isn't replacing it but merging the two. So the first 5 buttons are correctly overwritten but the additional buttons of the original field are still appended. Doesn't happen with the textarea field. I'm looking into it.
Nope, turns out the textarea
field is behaving the same way.
I tested it with italic
overriding bold, italic
, so ended up with a single italic
button only because the field is checking for duplicates (which is a nice features btw, I added it: https://github.com/sylvainjule/kirby-markdown-field/commit/956182ae938bd419b580c18ba454ac1fa6e1457a)
I've opened an issue here: https://github.com/k-next/kirby/issues/1349 So I'm closing this one.
Let's say I define a 'default_markdown.yml' field blueprint, which sets out all the buttons I normally want in my standard markdown fields - it looks something like this:
Now, somewhere else in my site, I'm going to extend this blueprint, wanting to override the 'buttons' option, because I want to use less buttons. So, I'd do something like this:
Unfortunately, when I do this, I still get all the buttons from the original field blueprint - not the overridden, shorter list...