Results 1 to 6 of 6

Thread: Classes not showing in TinyMCE

  1. #1
    User
    Join Date
    08-09-09.
    Location
    Zwolle, The Netherlands
    Posts
    73

    Default 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.

  2. #2
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Classes not showing in TinyMCE

    Only thing I can find is the settings in Themes::Page Layouts
    Aggregate style sheets
    Aggregate the style sheets into a single file (improves the page loading time).
    and
    Skip tl_files/tinymce.css
    Do not include the TinyMCE style sheet

  3. #3
    User
    Join Date
    08-09-09.
    Location
    Zwolle, The Netherlands
    Posts
    73

    Default 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.

  4. #4
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default 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.

  5. #5
    User
    Join Date
    08-09-09.
    Location
    Zwolle, The Netherlands
    Posts
    73

    Default Re: Classes not showing in TinyMCE

    I don't know if this helps, but did you try clearing the browser's cache?

  6. #6
    New user
    Join Date
    07-16-09.
    Posts
    29

    Default 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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •