Classes not showing in TinyMCE
I must perhaps be overlooking something obvious, but I added some css classes to tl_files/tinymce.css, but they're not showing in the editor. Not even after refreshing the browser page, clearing cache or trying different browsers.
These are classes I wanted to include:
Code:
.imgLeft { float: left; margin: 2px 8px 2px 2px; padding: 4px; border: 1px solid #c3c3c3; }
.imgRight { float: right; margin: 2px 2px 2px 8px; padding: 4px; border: 1px solid #c3c3c3; }
/* blockquote { margin-bottom: 0px; padding: 0px; background: url("/tl_files/site_images/left-quote.jpg") no-repeat scroll left top #FFFFFF; } */
.quote { margin-bottom: 2px; padding-top: 4px; padding-bottom: 4px; font-family: Georgia, "Times New Roman", "Trebuchet MS"; font-style: italic; font-size: 14px; background: url("/tl_files/site_images/right-quote.jpg") no-repeat scroll right bottom transparent; text-indent: 30px; }
.author { margin-top: 0px; padding-top: 0px; text-align: right; font-family: Georgia, "Times New Roman", "Trebuchet MS"; font-size: 14px; color: #B0B0B0; }
Now, after switching back to the original tinymce.css that's included with the Contao distribution, the classes are not showing anymore either.
Re: Classes not showing in TinyMCE
Only thing I can find is the settings in Themes::Page Layouts
Quote:
Aggregate style sheets
Aggregate the style sheets into a single file (improves the page loading time).
and
Quote:
Skip tl_files/tinymce.css
Do not include the TinyMCE style sheet
Re: Classes not showing in TinyMCE
I found out that I'd accidentally done this in the localconfig.php:
Code:
$GLOBALS['TL_CONFIG']['websitePath'] = '/';
Then the path to the tinymce.css was wrong in the html page with with the Tinymce RTE:
Code:
content_css : "//system/themes/tinymce.css,//tl_files/tinymce.css",
Once this was set correctly:
Code:
$GLOBALS['TL_CONFIG']['websitePath'] = '';
The path to tinymce.css was correct.
Re: Classes not showing in TinyMCE
My paths are also correct, but still the classes don't show up. I got it right once before, but I'm unsure what else I have to do to enable them to show up in the stop-down list. I can see warning, error and information, but I can't see my "color" one that I added.
Re: Classes not showing in TinyMCE
I don't know if this helps, but did you try clearing the browser's cache?
Re: Classes not showing in TinyMCE
Quote:
Originally Posted by cothedo
I don't know if this helps, but did you try clearing the browser's cache?
Aha! That did the trick for me! I love simple solutions.
Just