I have set up a style property called "Page Header" and I see it in the styles dropdown list in the richtext editor. But when I highlight text and select the style nothing is changing. When I view the source all of the text on my page the highlighted text area is still in paragraph tags.
I'm using 4.1.5 and Firefox, but get the same results in other browsers. I'm just starting to learn Umbraco so maybe I'm doing something wrong. Style Properties are a super feature, so I'd really like to be able to set these up for the site editors. Any ideas?
So after some experimentation, it appears if my Style Property has an allias of a known tag (like H2) then the style appears in the rich text editor.
But if my Style Poperty is named Header2 then the style is not applied in the rich text editor. Even when I name the style .header2 and when I view the html I see that I have a class applied to the block of text i.e. <p class="header2">some text</p>, but the header2 style does not get applied in the editor window.
I'm answering my own question here. But maybe this will be useful to someone else.
In my stylesheet I have a style defined for paragraph tag p. It appears that the style for that is overriding the style in the class designator. If I want to be sure the class is applied then I have to define the class in my stylesheet too.
Richtext Editor not Applying Style Property
I have set up a style property called "Page Header" and I see it in the styles dropdown list in the richtext editor. But when I highlight text and select the style nothing is changing. When I view the source all of the text on my page the highlighted text area is still in paragraph tags.
I'm using 4.1.5 and Firefox, but get the same results in other browsers. I'm just starting to learn Umbraco so maybe I'm doing something wrong. Style Properties are a super feature, so I'd really like to be able to set these up for the site editors. Any ideas?
So after some experimentation, it appears if my Style Property has an allias of a known tag (like H2) then the style appears in the rich text editor.
But if my Style Poperty is named Header2 then the style is not applied in the rich text editor. Even when I name the style .header2 and when I view the html I see that I have a class applied to the block of text i.e. <p class="header2">some text</p>, but the header2 style does not get applied in the editor window.
What needs to be done to get this to work?
I'm answering my own question here. But maybe this will be useful to someone else.
In my stylesheet I have a style defined for paragraph tag p. It appears that the style for that is overriding the style in the class designator. If I want to be sure the class is applied then I have to define the class in my stylesheet too.
I have the same problem with you. and I have post it on codeplex, please click following link to vote it.
http://umbraco.codeplex.com/workitem/28593
is working on a reply...