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?
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 :)
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.
Odd one. CSS class/ids are case sensitive. Is the "Red" class defined as "red" in common.css?
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.
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
@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.
is working on a reply...