I am not sure I understand Umbraco's css functionality. I have create a new stylesheet and added some styles in teh Settings sections. One of my styles is named "Code", has the alias ".code" and I added some CSS in the Styles field.
My new "Code" style does show up in the RTE, but when I select some text and try to apply the style, nothing happens. What I want is that the RTE sets class="code" on the <p> or something, so that the text actually appears with the code style that I entered when I publish the page.
Any clues? I want to add a CSS class to an element in the RTE using the CSS dropdown in the RTE.
I created my "Code" style under settings > stylesheets > TextStyles (TextStyles being my css file) The Code style shows up in the RTE, but when I select some text and then select the Code style, nothing happens. When I save the page the style on the published page hasn't changed either. And when I use the HTML button in the RTE I don't see a ".code" class added anywhere.
I am including the TextStyles.css file on all my pages.
When viewing the style in the stylesheet area is the formatting appearing in the Preview Box ?
Can you provide an screenshot of your custom style?
Also are you able to provide a screenshot of the actual stylesheet file from Visual Studio (or similar) Maybe just the part below the "Editor Properties" line
Add CSS classes to items in the RTE
Hello,
I am not sure I understand Umbraco's css functionality. I have create a new stylesheet and added some styles in teh Settings sections. One of my styles is named "Code", has the alias ".code" and I added some CSS in the Styles field.
My new "Code" style does show up in the RTE, but when I select some text and try to apply the style, nothing happens. What I want is that the RTE sets class="code" on the <p> or something, so that the text actually appears with the code style that I entered when I publish the page.
Did you associate the CSS to the RTE in the TinyMCE DataType at the "developper" section?
Yep
Any clues? I want to add a CSS class to an element in the RTE using the CSS dropdown in the RTE.
I created my "Code" style under settings > stylesheets > TextStyles (TextStyles being my css file)
The Code style shows up in the RTE, but when I select some text and then select the Code style, nothing happens. When I save the page the style on the published page hasn't changed either. And when I use the HTML button in the RTE I don't see a ".code" class added anywhere.
I am including the TextStyles.css file on all my pages.
Hi Julius
When viewing the style in the stylesheet area is the formatting appearing in the Preview Box ?
Can you provide an screenshot of your custom style?
Also are you able to provide a screenshot of the actual stylesheet file from Visual Studio (or similar) Maybe just the part below the "Editor Properties" line
Cheers
Nige
is working on a reply...