Click here to register.
      
PBWG Banner


     Discuss > Web Design, Templates, and Themes

tiny mce styles

User lleighh
Date 3/11/2008 3:39 pm
Views 1114
Rating -4    Rate [
|
]
Previous · Next
User Message
lleighh
How do I add styles to the rich editor styles dropdown list. I've tried adding a stylesheet with the css I want to appear in the dropdown. Not sure if I have the correct stylesheet URL, though. Could that be it?

--- (Edited on 3/11/2008 3:39 pm [GMT-0500] by lleighh) ---



Back to Top
Rate [
|
]
 
 
roryzweistra

Well if you got the URL wrong, then the stylesheet can not be found.
I suggest that you check the link to see if it exists.

--- (Edited on 3/13/2008 18:59 [GMT+0100] by roryzweistra) ---



Back to Top
Rate [
|
]
 
 
lleighh

The css file does exist. I can follow the URL that I put in the 'css file' box and see the file in my browser.

But when I use the rich editor and click on the styles dropdown, there's nothing. 

--- (Edited on 3/27/2008 6:22 am [GMT-0500] by lleighh) ---



Back to Top
Rate [
|
]
 
 
bartjol

The styles that are present there should be defined in the css file. So it is a style sheet component:

.myclass {
          property: value;
}

then myclass appears as style in the rich editor if you define only class subtags:

.myclass p {
            property: value;
}

it does not. 

--- (Edited on 3/27/2008 2:33 pm [GMT+0100] by bartjol) ---



Back to Top
Rate [
|
]
 
 
lleighh

Here's my css

.rightalign img {
     float: right;
     padding: 6px;
     margin: 6px;
     vertical-align: top;
}

.righttextblock {
     font-family: verdana, sans-serif;
     font-size: 10px;
     color: #1E417C;
     float: right;
     padding: 6px;
     margin: 6px;
     vertical-align: top;
     background: #E4E4F1;
     border: 1px #6F8AB7 solid;
     width: 200px;  
     white-space: normal;
}    

.righttextblock h3 {
     font-family: verdana, sans-serif;
     font-size: 11px;
     font-weight: bold;
     color: #6F8AB7;
     float: right;
     vertical-align: top;
}    

And here's what i have in the css file block in the richedit config page:

gateway macro followed by URL/to/file.css;  

--- (Edited on 3/27/2008 6:51 pm [GMT-0500] by lleighh) ---

--- (Edited on 3/27/2008 7:01 pm [GMT-0500] by lleighh) ---



Back to Top
Rate [
|
]
 
 
bartjol

In the help file from 7.3.22 it sais that some parameters can get in between, if you use the gateway macro, it should be used as such:

ˆ⁄(url⁄to⁄cssfile);

to prevent that, does this help? 

--- (Edited on 3/28/2008 10:09 am [GMT+0100] by bartjol) ---



Back to Top
Rate [
|
]
 
 

Re: is there a an audio/video gallery wobject? by preaction - Sat @ 09:43am

is there a an audio/video gallery wobject? by orenshani - Sat @ 02:36am

Smoketest For nightly_2008-10-11 by Visitor - Sat @ 01:55am

Smoke Test for WebGUI (Stable) (2005-01-23) by botaction - Sat @ 01:50am

Smoke Test for SVN (2005-01-23) by botaction - Sat @ 01:43am

Partner for Feature: Document Repository by JT - Fri @ 04:11pm

Error in log. by pvanthony - Fri @ 12:46pm

Re: Goals by JT - Fri @ 12:31pm

Re: Images in RSS-Syndicated asset by elnino - Fri @ 12:25pm

Re: Password Recovery info wrong by dwittenberg - Fri @ 12:04pm

Re: Password Recovery info wrong by dwittenberg - Fri @ 12:03pm

Re: WebGUI::Crypt by JT - Fri @ 11:56am

Re: Images in RSS-Syndicated asset by ehab - Fri @ 11:52am

Re: Images in RSS-Syndicated asset by elnino - Fri @ 11:47am

Re: Password Recovery info wrong by knowmad - Fri @ 11:18am