[opencms-dev] Fckeditor own styles "Heading"

ANDRES SAYAGO asayago at ebstudio.com
Tue Jul 25 22:38:41 CEST 2006


Hi.

I need to know how can I define own styles in the FCKeditor.

I have in the "Format" list: "Normal", "Normal (DIV)", "Formatted", 
"Address", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Heading 
5", "Heading 6".

I want to have another styles defined. How can I do it?

Thanks!!

Andrés


vikas gupta escribió:
>
> Hi all,
>
>  
>
>   I have created my own css class with the same name as 
> div.ocms_de_norm. It is working fine for background color. But for
>
>  
>
>          padding-top: 1px;  
>
>  
>
>          padding-bottom: 1px;  
>
>  
>
> I am unable to get these properties in javascript. I am using
>
> Document.getElementByTagName("div").className.paddingTop to get this 
> property. It is giving undefined.
>
>  
>
>  
>
>  
>
> One more thing editable tag has only one attribute file. Can it be a 
> css file?
>
>  
>
>  
>
> Regards
>
> Vikas
>
>  
>
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org 
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Christian Steinert
> Sent: Sunday, July 23, 2006 2:28 PM
> To: The OpenCms mailing list
> Subject: Re: [opencms-dev] css problem
>
>  
>
> Vikas Jain schrieb:
>
> >
>
> >
>
> > Hi List,
>
> >
>
> > Can I override the default css provided by opencms for editable.
>
> >
>
> > I want to override the following css part::
>
> >
>
> > 
>
> >
>
> >  div.ocms_de_norm {  
>
> >
>
> >          width: 100%;  
>
> >
>
> >          padding-top: 1px;  
>
> >
>
> >          padding-bottom: 1px;  
>
> >
>
> > }
>
> >
>
> > 
>
> >
>
> > Thanx in advance.
>
> >
>
> > 
>
> >
>
> > Regards
>
> >
>
> > Vikas
>
>  
>
> I see two ways of doing this
>
>  
>
> 1. edit the stylesheet that comes with opencms (but you would lose your
>
> changes whenever you upgrade to a new version
>
>  
>
> - OR -
>
>  
>
> 2. a.) create an own stylesheet,
>
>    b.) add a different definition of that style inside your stylesheet
>
>        this new definition can overwrite the style properties
>
>        that you want to change
>
>    c.) include that stylesheet in your templates AFTER <cms:editable />
>
>        -BUT- include it only, if the the current project is not the
>
>        online project
>
>        (You should be able to use CmsRequestContext to find out, if
>
>         you are in the online project or not)
>
>  
>
>        something like this should be enough:
>
> cmsJspActionElement.getRequestContext().currentProject().isOnlineProject()
>
>  
>
>  
>
>  
>
>  
>
> I would suggest the 2nd alternative.
>
>  
>
> Kind Regards,
>
> Christian
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev


-- 

WebStudio S.A.

*J. Andrés Sáyago P.*
Ingeniero de Desarrollo
Calle 93B No 12-48 Of 302
Bogota D.C., Colombia
Tel: (57) (1) 610 6834 ext. 107
Fax: (57) (1) 610 6834 ext. 108
Cel: (57) 300 5528542
asayago at ebstudio.com

Barcelona, España
Paseo de Gracia 2-4, 3,6a
PBX. (34) 911 830 105
www.ebstudio.com
<http://www.ebstudio.com>"Su Aliado en la Red"

**AVISO DE CONFIDENCIALIDAD***
*ESTE MENSAJE, (INCLUYENDO CUALQUIER ANEXO) ESTÁ DIRIGIDO ÚNICAMENTE A 
LOS DESTINATARIOS ARRIBA SEÑALADOS. PUEDE CONTENER INFORMACIÓN 
CONFIDENCIAL O PRIVILEGIADA Y NO DEBE SER LEÍDO, COPIADO O DE OTRA FORMA 
UTILIZADO POR CUALQUIER OTRA PERSONA. SI USTED RECIBE ESTA COMUNICACIÓN 
POR ERROR, FAVOR AVISAR AL REMITENTE Y ELIMINAR EL MENSAJE DE SU SISTEMA.

THIS E-MAIL (INCLUDING ANY ATTACHMENTS) IS INTENDED ONLY FOR THE 
RECIPIENT(S) NAMED ABOVE. IT MAY CONTAIN CONFIDENTIAL OR PRIVILEGED 
INFORMATION AND SHOULD NOT BE READ, COPIED OR OTHERWISE USED BY ANY 
OTHER PERSON. IF YOU ARE NOT A NAMED RECIPIENT, PLEASE CONTACT THE 
SENDER AND DELETE THE E-MAIL FROM YOUR SYSTEM.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060725/b46166ce/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 4154 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060725/b46166ce/attachment.jpg>


More information about the opencms-dev mailing list