Click here to register.
      
irc://irc.freenode.net#webgui

iPhoneGuy: WebGUI is a pile of crap.
rizen: If WebGUI is such a pile of crap, why do you use it?
iPhoneGuy: Because it's the best pile of crap out there.

If this is what people who hate us are saying, imagine what people who love us will say. Come join us on IRC.


     Web Design, Templates, and Themes > tiny mce styles

tiny mce styles

User lleighh
Date 3/11/2008 3:39 pm
Views 818
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: Duplicate web site by bartjol - Sun @ 01:21pm

YouSendIt like app. by pvanthony - Sun @ 09:33am

Smoketest For nightly_2008-07-20 by Visitor - Sun @ 01:37am

Smoketest For nightly_2008-07-19 by Visitor - Sat @ 01:38am

Re: Survey2 by perlmonkey2 - Fri @ 05:36pm

Smoketest For nightly_2008-07-18 by Visitor - Fri @ 01:39am

Re: Building WRE for Fedora Core 4 x86_64 by neodymiumex - Thu @ 02:59pm

Tracking file downloads in WebGUI by colink - Thu @ 02:00pm

Smoketest For nightly_2008-07-17 by Visitor - Thu @ 01:39am

Re: Survey2 by perlmonkey2 - Wed @ 11:05pm

Re: Survey2 by patspam - Wed @ 08:05pm

Re: Survey2 by perlmonkey2 - Wed @ 03:41pm

Re: Duplicate web site by techwriter - Wed @ 09:07am

Re: Limiting the size of avatars by bernd - Wed @ 03:45am

Smoketest For nightly_2008-07-16 by Visitor - Wed @ 01:38am