[opencms-dev] FCKEditor and htmlarea

Andreas Zahner A.Zahner at alkacon.com
Mon Apr 3 14:12:25 CEST 2006


David,

currently it is not possible to remove buttons by configuring the Html
widget. The generated HTML is part of the integrated editor, if you want to
change that, try to read the documentation of FCKeditor
(http://www.fckeditor.net) or HtmlArea
(http://www.dynarch.com/projects/htmlarea/) for hints.

The file to configure is the XSD (XML Schema Definition) that is used for
you XML content.

Regards,
Andreas.

-------------------
Andreas Zahner

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com -  http://www.opencms.org

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of David García González
Sent: Monday, April 03, 2006 12:09 PM
To: The OpenCms mailing list
Subject: RE: [opencms-dev] FCKEditor and htmlarea

Hi, 
And if you wanted to remove buttons, for example Bold and Cursive?
What is the file where you config the buttons that appear?
Or, even better, where can you change the code these buttons generate?
For example, Can you make the Bold button generate <strong> instead of <p
style: font-weight:bold></p>

Regards!

***********************************************************************

David García González

Fundación CTIC

-Centro Tecnológico de la Información y la Comunicación-

E-mail: david.garciag at fundacionctic.org

Tfno: +34 984 29 12 12

-Parque Científico y Tecnológico Gijón-Asturias-Spain

www.fundacionctic.org

***********************************************************************

 


-----Mensaje original-----
De: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org]
En nombre de Andreas Zahner
Enviado el: lunes, 03 de abril de 2006 12:51
Para: 'The OpenCms mailing list'
Asunto: RE: [opencms-dev] FCKEditor and htmlarea

Hi,

to shed a little light in the configuration of the editor buttons (FCKeditor
or HtmlArea) for XML contents:
it is possible to show additional buttons for HTML fields by defining them
in the XSD of the XML content.
The following buttons can be configured: source code button, format
selector, all gallery types, link, anchor and the height of the editable
area is configurable, too.

Just add the following layout configuration in the appinfo section (which
enables all possible buttons) for the desired element:

<layouts>
  <layout element="MyHtmlElementName" widget="HtmlWidget"
configuration="source,link,anchor,formatselect,imagegallery,downloadgallery,
linkgallery,htmlgallery,tablegallery,height:400px" />
</layouts>

Hth!

Regards,
Andreas.

-------------------
Andreas Zahner

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com -  http://www.opencms.org




More information about the opencms-dev mailing list