|
|
Rank: Enthusiast
Joined: 4/6/2008 Posts: 28 Location: Atlanta, GA
|
Hello All,
I created a new style in the stylesheets section (basically I copied and pasted the contents of an existing site css file). I edited the Data Type for Rich Textbox to have the style checked. When editing content I can drop down the style list and see my available classes in the dropdown. I cannot however seem to get the style to actually work in the text editor.
I have tried selecting the text ahead of time and then selecting the style...nothing. If I click away and then back on the text it goes back to the default.
I have tried selecting the style and then typing in content, it immediately goes back to the default style.
The only way I have been able to actually get the content to be styled is by opening the html view and wrapping text in span elements with class attributes. This would not be something I would expect my content editors to know how to do.
Any suggestions on why this is happening? Any documentation regarding what TinyMCE does need in the style sheet to work properly?
Thanks.
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,689 Location: KY, USA
|
I've seen this once or twice. I *think* it was when I was using Firefox in v3 and that using IE resolved it, but I don't recall for sure. It sounds like you've probably got the stylesheets set up properly, but just to be sure that isn't the source of the problem you might want to read these: http://forum.umbraco.org/yaf_postst4730_Customised-TinyMCE-Editor-to-Allow-Heading-Tags-to-be-applied.aspx (especially my two long posts about half way down) http://blogs.thesitedoctor.co.uk/tim/2008/05/01/How+To+Apply+Heading+Tags+In+Umbraco.aspx (for an alternative approach) cheers, doug.
MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
|
|
Rank: Enthusiast
Joined: 4/6/2008 Posts: 28 Location: Atlanta, GA
|
Thanks for the quick response Doug always a pleasure speaking with you.
I am having this problem in I.E 7. I am reading those posts now so maybe these will shed some light. The style sheet is not defining style for any heading elements I am using classes do you think this is an issue?
Wondering if I need to define style for H1,H2, etc... instead of a class name and then using a span.
|
|
 Rank: Fanatic
Joined: 7/20/2006 Posts: 477 Location: NL
|
Just a quick thought: Could it be a caching problem in your browser? Try emptying your cache and then log back in Umbraco.
PeterD
Working on an events-calendar with recursion. Post requests on my blog!
|
|
Rank: Enthusiast
Joined: 4/6/2008 Posts: 28 Location: Atlanta, GA
|
PeterD,
I am not sure what you mean, I am in the editor not viewing the content. It should updated immediately when I make the selection for the style right? Also if I manually put in the span elements in the html view of the the TinyMCE the view is updated when I go back to the editor.
Additionally I tried it on a machine that I previously not used to edit that page and the issue still exists.
|
|
Rank: Enthusiast
Joined: 4/6/2008 Posts: 28 Location: Atlanta, GA
|
PeterD, Doug,
I was able to get the H4 to work by creating a style in the css and then adding a "Sub Heading" in the "Create" option under the style sheet. now when I select the text and drop the style down it does change to the appropriate style.
I am looking for something that will let me select the text in the editor and then select a style class and have the selected text be wrapped in a span is this possible?
Ex
select text "test" and select style "styleBlah" resulting in html like so
<span class="styleBlah">test</span>
Thanks.
|
|
 Rank: Enthusiast
Joined: 11/9/2007 Posts: 29 Location: Washington State, USA
|
radmanmm,
Be sure and add a preceding "." before your alias in the Style Definition Panel used to create it. Just like you did with H4 tag, but add a period before a named class' Alias.
Xander Lih LiH is flammable in air and reacts explosively with water.
|
|
Rank: Enthusiast
Joined: 4/6/2008 Posts: 28 Location: Atlanta, GA
|
rabidrobot,
Thanks that was exactly what was missing, it works like I was hoping for.
Thanks again for your help.
Where in Wa are you located? I grew up there but now reside in Atlanta.
|
|
|
Guest |