Quote from: dvstudiosinc at Feb 18, 2014, 04:10 PM
This is one of those things that there was a lot of discussion, but no real answers. Anyone out there able to customize styles in CKEditor in Revo? (wish this client would pop for redactor, then it would be a non-issue)
I'm not saying this is the correct way of doing it but I have found a way that works to add my own styles to the list in ckeditor.
Create a new folder in the ckeditor directory, manager/assets/components/ckeditor/ckeditor, for various reasons I called my directory clan, so I had manager/assets/components/ckeditor/ckeditor/clan.
Then from the ckeditor directory copy the styles.js file to your new directory.
Now edit your new styles.js file, the important thing to note is to change the name of the style set to the same as the directory so in my style.js file the first code line is
CKEDITOR.stylesSet.add( 'clan', [
Then add in or delete styles to styles.js as required. For example I want a h4 level style with a clear:left; style applied so I added
{name: 'Clear left', element: 'h4', styles: { 'clear': 'left' } },
after the Italic Title line.
Then in the manager settings for the ckeditor change the CSS styles set to
where you change 'clan' to your directory name and styleSet.
Finally clear your site cache and go to the resource where your new style should appear in the list.
[ed. note: apcherry last edited this post 9 years, 4 months ago.]