CSS styles are applied when page rendered but not in the rich text editor
I've recently had to restore my site from a back up and have just noticed the following odd behaviour ('m not sure it's linked to the restore but it is worth mentioning just in case):
I've created a new CSS class with the stylesheet associated with the rich text data type (I am using TimyMCE) in just the same way as other classes that work fine. The style name appears correctly in the drop down and when I apply it the HTML is changed to show a "<span>...</span>" around the text, however on the screen the style is not applied to the piece of text. If I publish the page and view it in the browser then the style is displayed correctly.
I could live with knowing that the style will be displayed eventually but the site is edited by other users and I know they will want the style to be applied in the RTE as the other styles are. Does anyone have any ideas?
Technical details:
Umbraco version: 4.0.2.1 (Assembly version: 1.0.3441.17657) ASP.NET 3.5 sp1 Windows Server 2003 IIS 6
I guess that you have linked some sort of stylesheet to your Richtext Editor-datatype right? Otherwise you wouldn't see the different styles in the dropdown.
Try styling your different styles in the main-stylesheet connected to the RTE.
Example:
If you have your Richtext Editor data type linked together with "richtext.css". Under the settings-section -> stylesheets -> richtext.css you have your different styles underneath. In example you have a style called "Heading 3" with the alias: h3. Try open the "richtext.css", and style the h3 in there. Then it should be shown the right way in your Richtext Editor as well.
But it could take some time for the changes to be visible because of cache and sessions and stuff I think. So have some patience.
Maybe I'm totally off here, but it works for me that way :)
CSS styles are applied when page rendered but not in the rich text editor
I've recently had to restore my site from a back up and have just noticed the following odd behaviour ('m not sure it's linked to the restore but it is worth mentioning just in case):
I've created a new CSS class with the stylesheet associated with the rich text data type (I am using TimyMCE) in just the same way as other classes that work fine. The style name appears correctly in the drop down and when I apply it the HTML is changed to show a "<span>...</span>" around the text, however on the screen the style is not applied to the piece of text. If I publish the page and view it in the browser then the style is displayed correctly.
I could live with knowing that the style will be displayed eventually but the site is edited by other users and I know they will want the style to be applied in the RTE as the other styles are. Does anyone have any ideas?
Technical details:
Umbraco version: 4.0.2.1 (Assembly version: 1.0.3441.17657)
ASP.NET 3.5 sp1
Windows Server 2003
IIS 6
Many thanks,
Steve
I guess that you have linked some sort of stylesheet to your Richtext Editor-datatype right? Otherwise you wouldn't see the different styles in the dropdown.
Try styling your different styles in the main-stylesheet connected to the RTE.
Example:
If you have your Richtext Editor data type linked together with "richtext.css". Under the settings-section -> stylesheets -> richtext.css you have your different styles underneath. In example you have a style called "Heading 3" with the alias: h3. Try open the "richtext.css", and style the h3 in there. Then it should be shown the right way in your Richtext Editor as well.
But it could take some time for the changes to be visible because of cache and sessions and stuff I think. So have some patience.
Maybe I'm totally off here, but it works for me that way :)
Ah! Cache was the magic word. I cleared that and everything is working fine now. Thanks for your help.
You are welcome Steve :)
Remember to mark this post as answered, so that people can see that the problem is solved.
Have a nice day...
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.