[opencms-dev] Fckeditor and my own styles CSS

Christian Steinert christian_steinert at web.de
Thu Jul 27 01:37:54 CEST 2006


Christian Steinert wrote:
> Dear Andres,
> 

Sorry, had an error in my 1st post.
See correction below - it's without dot, as Henning wrote.

> 
>> For example, this is something of its content:
>>
>> ---
>>     <Style name="Custom Bold" element="span">
>>         <Attribute name="style" value="font-weight: bold;" />
>>     </Style>
>> ---
> 
> this would create the following code, as soon as you assign the style:
>    <span style="font-weight:bold">SELECTED_TEXT</span>
> 
> In this example SELECTED_TEXT is, whatever text you have selected before
> selecting the style. Of course using a centralized css file - like you
> want to do it - is much better than adding the style properties directly.
> 
>> But, if I have a normal CSS file, with content like this:
>>
>> ---
>> .Fecha {
>>     font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;
>> color: #333333; font-weight: normal; padding-left: 8px;
>>     }
>> .Titulo_1 {
>>     font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
>> font-size: 20px; color:#EA3D46; font-weight: bold; text-decoration: none;
>> }
>> ---
>>
>> How can I do to make the sentences with the XML structure?
> 
> If you want to point to a style of your stylesheet then of course your
> stylesheet must be linked to your JSP template (the name of the CSS file
> must be contained in the  "template"  property).
> 
> You also have to point to your CSS file in the <head> section  of your
> html pages by using something like this:
>   <link rel="stylesheet" type="text/css" href="/path/to/style.css" />
> 
> 
> then you add config entries like this to your style.css_styles.xml:
>  <Style name="Fecha" element="span">
WRONG:   <Attribute name="class" value=".Fecha" />
CORRECT: <Attribute name="class" value="Fecha" />

>  </Style>
> 
> 
> The HTML code that FCKeditor inserts will then be:
>  <span class="Fecha">SELECTED_TEXT</span>
> 
> ________
> 
> -OR- if you want to create a block element instead, then you could
>   you could create a different tag, instead of span:
>   for example a <div> or a <p>
>   by using
> 
>    <Style name="Fecha" element="div"> ...
>    <Style name="Fecha" element="p">  ...
> 
>   etc.
> 
> 
>> PLEASE, HELP ME!!
> I hope this does help.
>> Andrés
> 
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060727/91a99b67/attachment.bin>


More information about the opencms-dev mailing list