AW: [opencms-dev] Fckeditor and my own styles CSS

Kai Schliemann k.schliemann at comundus.com
Wed Jul 26 18:56:44 CEST 2006


Hi Andrés,

well, no one said, that it is not related to OpenCms.

I'll try to explain again, what you have to do:

1. create a stylesheet for your website (e.g. styles.css).
2. create the css classes you want to use in the editor.
3. to tell fckeditor to use this stylesheet go to your main template and
change the property "template". Set it to the path of your stylesheet.
4. create a plain text file styles.css_style.xml (as Christian already told
you)
5. edit the styles.css_style.xml file according to your needs. Have a look
at http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Styles for
details. An example xml file is shipped with OpenCms. you can find it in
/system/workplace/resources/editors/fckeditor/fckstyles.xml.

I hope that this the solution for what you are looking for. Please let me
know if this helped.

Regards
i.A. Kai Schliemann
________________________________________________________________

Mit einem Klick alles im Blick, dank Informatik
Partner im Wissenschaftsjahr 2006 – www.Informatikjahr.de
________________________________________________________________

Dipl.-Wirt.Ing (FH)
Kai Schliemann


IT-Berater

comundus GmbH
Schüttelgrabenring 3, 71332 Waiblingen

Telefon  +49 (0)71 51-5 00 28-20
Internet www.comundus.com

IT EXCELLENCE by comundus.
________________________________________________________________



  -----Ursprüngliche Nachricht-----
  Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von ANDRES SAYAGO
  Gesendet: Mittwoch, 26. Juli 2006 15:55
  An: The OpenCms mailing list
  Betreff: [opencms-dev] Fckeditor and my own styles CSS


  Well.

  I have a question and I know that someone could say this question directly
is not related to the OpenCMS, but it is.

  The xml sample file about CSS in the directory of the fck-editor module in
the virtual opencms filesystem is not clear.

  For example, this is something of its content:

  ---
      <Style name="Custom Bold" element="span">
          <Attribute name="style" value="font-weight: bold;" />
      </Style>
  ---

  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?

  PLEASE, HELP ME!!

  Andrés


  Christian Steinert escribió:
Sorry, my post was a bit confusing, I think

...

2) In the directory where your CSS-stylesheet is, you need to create a
special file with the same name as your CSS-File plus the suffix _style.xml

So if your stylesheet is
	style.css
then you add
	style.css_style.xml
in the same directory where your CSS is.

There is a html file which describes this in the directory of the
fck-editor module in the virtual opencms filesystem. The module also
contains a sample xml file.

Hope it's a bit clearer this time,
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

  --------------------------------------------------------------------------
--

_______________________________________________
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


  --


        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
        "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/20060726/7ee40a21/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/20060726/7ee40a21/attachment.jpg>


More information about the opencms-dev mailing list