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?
Tim (toledoh.com.au)
By ross - January 19, 2017
Hi Tim
You are on the right track.
You need to add your class to both.
The first one is so it shows up for your WYSIWYG editor and the second is so it works on the front end pages.
Keep us up to date with how you are making out.
Thanks!
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/