Sort (dropdown) custom styles in redactor editor

Permalink
Hi!

Is it possible to sort my custom styles in redactor with dropdowns?

Like:

Buttons
- Primary
- Standard
- Warning
- ...

Headings
- H1 blue
- H2 green
- H3 red
- H4 black

and so on!?

At the moment it is like:

Button primary
Button standard
Button warning
Heading H1 blue
Heading H2 green
Heading H3 red
Heading H4 black

If there are much more styles it's gonna be a chaos :)

Thank you very much!

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi machomaaan,

The Redactor custom styles are handled by the magic.js plugin. I don't believe it offers the ability to group by default. To add this feature, it would need to be modified along with the way the getThemeEditorClasses() method works.

Spending time modifying Redactor files is not recommended because the upcoming version 8 of concrete5 will be using a new rich text editor called CKEditor. I don't see custom style grouping available by default in CKEditor either. Adding it would also involve modifying the getThemeEditorClasses() method and the concrete5styles CKEditor plugin.

CKEditor does offer grouping by type. More information can be found in this discussion:
https://www.concrete5.org/community/forums/5-7-discussion/creating-s...