decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.94k stars 3.04k forks source link

Unable to extend editor toolbar buttons (like "h3", "blockquote",...) #504

Closed bert-bruggeman closed 5 years ago

bert-bruggeman commented 7 years ago

I can't find a way to extend the editor toolbar buttons...

erquhart commented 7 years ago

The buttons on the toolbar can't be added to, but you can add shortcode plugins that are accessed through the + icon. Here's the documentation for adding shortcode plugins to the editor, and here's an example where we implement a plugin for adding YouTube video shortcodes in Hugo syntax in a way that can be previewed through the CMS.

You can also ask questions on our Gitter channel: https://gitter.im/netlify/netlifycms. Please reach out if you need help!

bert-bruggeman commented 7 years ago

I do think this is still an issue, H3, h4, blockquote, ul, ol,... should be default buttons on the editor...

erquhart commented 7 years ago

@bert-bruggeman agreed! This makes sense as a feature request.

We do have a few more buttons coming in #254, check it out in the deploy preview: https://deploy-preview-254--cms-demo.netlify.com/#/collections/posts/entries/new

tortilaman commented 7 years ago

@bert-bruggeman I'll be working on adding some additional things to #254 in the coming days, but most of what you mentioned is there already.

erquhart commented 7 years ago

I should also clarify - I'm viewing this as a feature request to allow the toolbar to be configured. I don't think headers higher than h2 should be in the toolbar by default, but it should be possible to add them by config.

bert-bruggeman commented 7 years ago

Nice! Looking forward to the next version!

erquhart commented 5 years ago

This was mostly addressed in #1236. The remaining issue of header levels 3 - 6 is covered specifically in #1851.

bublick commented 1 year ago

Shortcodes definitely are cool, but is extend of the editor toolbar still blocked? I just need some formatting like "underline". Shortcodes are my single solution.