Click here to register.
      
Sprechen Sie WebGUI? Parlez vous WebGUI? Se habla WebGUI? Spreekt u WebGUI?

Do you speak WebGUI? Please help us translate WebGUI into your language.



     Web Design, Templates, and Themes > tiny mce styles

tiny mce styles

User lleighh
Date 3/11/2008 3:39 pm
Views 935
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 [
|
]
 
 

Re: Pagination and Navigation Menus. by rogier - Wed @ 08:43am

Re: Pagination and Navigation Menus. by eleger81 - Wed @ 08:16am

Re: perl module installation fails by knowmad - Wed @ 07:44am

Re: perl module installation fails by jonie_e2000 - Wed @ 06:20am

Smoketest For nightly_2008-08-20 by Visitor - Wed @ 01:44am

Re: Pagination and Navigation Menus. by rogier - Tue @ 04:20pm

Re: Pagination and Navigation Menus. by eleger81 - Tue @ 03:15pm

Re: spectre.pl cannot be started by susanb - Tue @ 03:09pm

Re: Help with show hide JS by sandraqu - Tue @ 03:02pm

spectre.pl cannot be started by zefo - Tue @ 02:27pm

Re: Pagination and Navigation Menus. by rogier - Tue @ 01:33pm