Custom Styles

2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 19, 2017   (RSS)

By Toledoh - January 18, 2017

Hi Guys,

Just checking I've got this right.  To add custom styles to the WYSIWYG now, you have to 

edit wysiwyg_custom.php

add "styleselect" as previous version

uncomment the below, then add a line (shown in red) for each style you have (what to call it, what can be selected to display this style, the class)

style_formats: [ // reference: https://www.tinymce.com/docs/configure/content-formatting/#style_formats
{ title: 'Example Class', selector: 'p', classes: 'exampleClass1' }
],

Then, go to the wysiwyg_custom.css, and add each class you identified in the php?

Cheers,

Tim (toledoh.com.au)