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 896
Rating -3    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 [
|
]
 
 

Dutch translation 7.5.19 done by bartjol - Fri @ 03:24am

Re: Updating translations by bartjol - Fri @ 03:22am

Smoketest For nightly_2008-08-08 by Visitor - Fri @ 01:43am

mod_proxying to a bare Apache in WRE 0.8 by baylink - Thu @ 03:19pm

Re: Web Page snapshots by aewhale - Thu @ 02:00pm

Re: SSL security. by JT - Thu @ 01:47pm

Re: Web Page snapshots by colink - Thu @ 10:50am

Re: Web Page snapshots by martink - Thu @ 09:40am

Re: Web Page snapshots by pwrightson - Thu @ 09:15am

Re: Web Page snapshots by aewhale - Thu @ 09:07am

Re: Password for whole site by bepo - Thu @ 07:49am

Re: Web Page snapshots by bartjol - Thu @ 06:46am