CodeGarden 10: The sixth annual Umbraco Developer Conference
June 23-25th 2010 - free ASP.NET MVC pre-conference. Register today!

related style sheets in rte not working

7/3/2009 10:15:23 PMAvatarPaul MardenLocation: Bracknell - UKposts: 118Karma: 103

I've created created a style sheet with a number of stylesheet properties.  I've associated these with the Richtext Editor, by setting the related stylesheet property on the Datatype.  The new styles now appear in the drop down styles menu in TinyMCE, and I can highlight some text and set the style, which renders properly when I view the saved document.  But ...

The problem is that the style doesn't render in the Umbraco backend in TinyMCE.

This isn't a huge problem cause all the HTML is being properly generated by TinyMCE, the only real problem is that the site editing experience isn't as Wysiwyg as it could be.

Version is :umbraco v 4.0.1 (Assembly version: 1.0.3373.718)

7/4/2009 6:50:10 AMAvatarbob baty-barrLocation: 339 elm street batavia, ILposts: 690Karma: 426
Comment with ID: 8553

Paul,

not sure if that is a 4.0.1 issue or not, but the process works just fine for me in 4.0.2.1...

here are the steps i took...

1. create a style sheet named editorStyles.css [which is blank]

2. create subStyles via rightclick and give attributes

3. add styleSheet to richText editor dataType

4. add styleSheet reference to my template

the properties are reflected in both the editor and the front-end display.

I would suggest to try an upgrade and see if that helps things.

7/4/2009 9:52:11 AMAvatarPaul MardenLocation: Bracknell - UKposts: 118Karma: 103
Comment with ID: 8555

Does anyone have experience of making this work in 4.01.  I'm reticent to upgrade unless I absolutely have to.  If I knew that others had it working in 4.01 then I'd know I could do work to fix it without upgrading.

7/4/2009 4:21:44 PMAvatarPaul MardenLocation: Bracknell - UKposts: 118Karma: 103
Comment with ID: 8567

OK this was a caching issue.  My PC crashed when I rebooted the templates kicked in.

Why didn't I think of that first.

Please login or Sign up To post replies