Copied to clipboard

Flag this post as spam?

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


  • Chris Gaskell 59 posts 142 karma points
    Mar 01, 2010 @ 14:47
    Chris Gaskell
    0

    Tiny MCE Styles

    HI all,

    I'm having some trrouble setting up the styles in the TinyMCE control - Richtexteditor.

    Ive create a stlye called Red within my 'common.css' stylesheet.
    I've given that style an alias of .Red
    I've added '' into the styles textbox (preview at the bottom goes red).

    Ive added the 'common.css' stylesheet to the richtexteditor control - Developer/datatypes/Richext Editor - Related Stylesheets.

    Then when I open content within TinyMCE I see my new style in the dropdown list. When I apply that style the text doesnt change. Looking at the HTML it's added <span class="Red">

    I'm a bit stuck - can you guys see what I'm missing?

     

    Thanks,
    Chris.

  • dandrayne 1138 posts 2262 karma points
    Mar 01, 2010 @ 15:06
    dandrayne
    0

    Odd one.  CSS class/ids are case sensitive.  Is the "Red" class defined as "red" in common.css?

     

  • Chris Gaskell 59 posts 142 karma points
    Mar 01, 2010 @ 15:12
    Chris Gaskell
    0

    Nom i'd named it .Red in the css.

    I'm wondering if it's come css caching issue - just clearing everything out and starting again.

     

    Thanks.

  • Kim Andersen 1447 posts 2196 karma points MVP
    Mar 01, 2010 @ 15:15
    Kim Andersen
    0

    When you say that you can see a <span class="Red"> around your element in your HTML, is this in the HTML-view in TinyMCE or in the sourcecode from the frontend?

    And I think that Dan has a good point too. It's always good to check it twice :)

    /Kim A

  • Chris Gaskell 59 posts 142 karma points
    Mar 01, 2010 @ 15:29
    Chris Gaskell
    1

    @Kim - it was both.

    I cleared down all my styles, manually cleared out the auto styles and started again.

     

    Works a treat now.

    Dont know if that was due to CSS caching - i was ctrl + F5ing - or I'd just got it all in a spin somehow.

     

    Thanks Guys,
    Chris.

     

Please Sign in or register to post replies

Write your reply to:

Draft