verbb / vizy

A flexible visual editor for Craft CMS
Other
44 stars 8 forks source link

Add menu of CSS classes like the formatting menu #44

Closed weotch closed 1 year ago

weotch commented 3 years ago

What are you trying to do? Add a menu for adding CSS classes or customizing the formatting options with CSS classes. Our use case is decoupling the styling of elements from the HTML tag used for better accessibility and SEO handling. For instance, we may want to render text large but don't necessarily want the tag to be an H1.

What's your proposed solution? I'd love a seperate pulldown menu of CSS classes like how formatting options is implemented. The styling of those classes could supplied as part of the configuration file or maybe stored in a CSS file that is loaded from a special location, like /web/vizy.css.

engram-design commented 1 year ago

Added in 2.1.0. Have a read through the blog post, the extensibility docs and the user guides