Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Teena 44 posts 64 karma points
    Sep 30, 2010 @ 18:19
    Teena
    0

    editor styles show up in RTE but are not applied to html

    I have added a style sheet contining only:

    @charset "utf-8";
    .mceContentBody {background-image:none; background-color:#fff; background:#fff;}
    body.mceContentBody {background-color:#fff; background:#fff; background-image: none; font-family: Arial, Segoe UI, Sans-Serif !important; text-align: left;}

    Added RTE available styles:

    and connected it to the RTE.  The styles show up in the RTE:

    But when applied, they do not effect the style to the copy selected.  They don't stick, the html is unchanged.  The styles show up in the RTE but do not seem to work.

    Any suggestions appreciated.

     

     

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Sep 30, 2010 @ 19:42
    Nik Wahlberg
    0

    Can you include in this thread what your style aliases look like? 

    Thanks,
    Nik

  • Kasper 9 posts 29 karma points
    Oct 01, 2010 @ 11:08
    Kasper
    0

    If i understand correctly, your styles looks like they should in the editor, put is not working on the website?

    If thats the issue, you need to add all the styles you have created , shown in your editor dropdownlist, to the runway stylesheet.

     

  • Teena 44 posts 64 karma points
    Oct 02, 2010 @ 00:56
    Teena
    0

    The runway.css is not in use in this site.

    Background:

    The website interface features a darkgray body background, when attached to the RTE - this bodybg style created the well known black background in RTE issue.

    The rqeditor.css was created specificly to solve the black RTE background issue and to provide the RTE styles requested.  Both style sheets are attached to the sites master template as below:

    <link href="/css/interface.css" rel="stylesheet" type="text/css" />
    <link href="/css/rqeditor.css" rel="stylesheet" type="text/css" />

    The styling aliases, in fact the rqeditor.css looks like this:

    @charset "utf-8";
    .mceContentBody {background-image:none; background-color:#fff; background:#fff;}
    body.mceContentBody {background-color:#fff; background:#fff; background-image: none; font-family: Arial, Segoe UI, Sans-Serif !important; text-align: left;}

    /* EDITOR PROPERTIES - PLEASE DON'T DELETE THIS LINE TO AVOID DUPLICATE PROPERTIES */
    Header {
    font-family: "Arial Black", sans-serif;
    font-size: 26pt;
    color: #003366;
    }

    Subhead {
    font-family: "Arial Black", sans-serif;
    font-size: 18pt;
    color: #6699cc;
    }

    Heading 3 {
    font-family: "Arial Black", sans-serif;
    font-size: 14pt;
    color: #000000;
    font-weight: bold;
    }

    Heading 4 {
    font-family: "Arial Black", sans-serif;
    font-size: 14pt;
    color: #000000;
    font-weight: bold;
    }

    Heading 5 {
    font-family: "Arial Black", sans-serif;
    font-size: 14pt;
    color: #6699cc;
    font-weight: bold;
    }

    Heading 6 {
    font-family: "Arial Black", sans-serif;
    font-size: 14pt;
    color: #000000;
    font-weight: bold;
    font-style: italic;
    }

    Body Highlight {
    color: #fe921f;
    }

    Body Highlight-Bold {
    color: #fe921f;
    font-weight: normal;
    }

    Body Regular {
    font-family: "Arial", sans-serif;
    font-size: 9pt;
    color: #000000;
    }

    Body Bold {
    font-family: "Arial", sans-serif;
    font-size: 9pt;
    color: #000000;
    font-weight: bold;
    }

    Body Italic  {
    font-family: "Arial", sans-serif;
    font-size: 9pt;
    color: #000000;
    font-style: italic;
    }

    Body Bold-Italic {
    font-family: "Arial", sans-serif;
    font-size: 9pt;
    color: #000000;
    font-style: italic;
    font-weight: bold;
    }


    Thanks in advance.

  • Teena 44 posts 64 karma points
    Oct 02, 2010 @ 00:59
    Teena
    0

    Attaching rqedior.css did correct the black background issue.

  • Teena 44 posts 64 karma points
    Oct 02, 2010 @ 01:51
    Teena
    0

    More info:

    After writing this out, I realized seperate style sheets are not necessary and simplified the issue by:

    • adding the .mceContentBody styles and the RTE styles to the bottom of the interface.css
    • removing from the mastre template

    Now, I have one less stylesheet and the RTE black background issue is still fixed.  The RTE field does reflect bold, itallic, and links applied from the main RTE menu bar but the styles are ineffective.  Recreating styles for test.

     

  • Rich Green 2246 posts 4008 karma points
    Oct 02, 2010 @ 09:38
    Rich Green
    0

    Hi Teena,

    Glad you got it all working. Just for reference you never needed to use the TinyMCE CSS in the Master template, just in the back end. The end user would never see it or need to download it.

    Rich

  • Teena 44 posts 64 karma points
    Oct 02, 2010 @ 15:54
    Teena
    0

    Hi Rich,

    Thanks but I did not get it all working.  The styles displayed in the RTE still do not stick.  They do not effect the main content RTE field.  I recreated each style manually in the Stylesheets section of the admin for test but it did not effect the root issue.  The styles still show up in the RTE menu but they still do not effect the selected copy. View html after applying reveals no cheange. It acts like the styles are not allowed or that it's not the right field type.  Here's the RTE datatype properties:

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Oct 02, 2010 @ 18:26
    Nik Wahlberg
    1

    Hi,

    it looks like your CSS selectors are not valid. This goes back to your Alias value in each of those styles. The values in there need to be class names or simple element selectors (such as .highlight, h1, h2, etc.). Writing out "Body Hightlight" is not a valid CSS selector. So, update your Alias values AND associated stylesheet and you should se the styles appear. 

    So, here's an example. Set the alias of Heading 3 to ".heading3", and update the associated style with this:

    .heading3 {
    font-family: "Arial Black", sans-serif;
    font
    -size: 14pt;
    color
    : #000000;
    font
    -weight: bold;
    }

  • Teena 44 posts 64 karma points
    Oct 02, 2010 @ 19:19
    Teena
    0

    Perfect and so simple a fix once you know.

    Thanks for your help.

Please Sign in or register to post replies

Write your reply to:

Draft