Hello,
I use the text area input in the panel and not a block editor. Can I add more buttons there? So there is no button for formatting as a quote. It would also be a good option for KirbyTags or placeholders…
So there is no option there. Thanks.
Check out the markdown editor plugin, maybe it has what you need if you don’t want to add custom buttons: Markdown Field | Kirby CMS Plugins
Adding a quote button is quite easy. I just did it in a recent project.
// site/plugins/textarea-buttons/index.php
<?php
use Kirby\Cms\App as Kirby;
Kirby::plugin('my/textarea-buttons', []);
// site/plugins/textarea-buttons/index.js
panel.plugin("my/textarea-buttons", {
textareaButtons: {
blockquote: {
label: "Zitat",
icon: "quote",
click: function () {
this.command("prepend", ">");
}
}
},
});
Then you can add the blockquote
button to your textarea like this:
textarea:
buttons:
- blockquote
1 Like
Perfect. Thank you!