[opencms-dev] xsd OpenCmsHtml editor

James Adams james at gamepub.com
Mon Jun 27 14:24:08 CEST 2005


Thanks Bruno for pointing me in the right direction.

Do you know though if there is an option to apply styles to html elements ?  I had a look but couldn't immediately find anything.
The WYSIWYG editor is fairly useless to me without this option.

regards

James


  ----- Original Message ----- 
  From: BRAGA Bruno Gonçalves 
  To: James Adams ; The OpenCms mailing list 
  Sent: Wednesday, June 22, 2005 2:15 PM
  Subject: RES: [opencms-dev] xsd OpenCmsHtml editor 


  I believe that this is not customize because he is fixed in the code (js). But you can edit it:

   

              /system/workplace/resources/components/widgets/htmlarea.js

   

  config.toolbar = [

                          [

                                     "copy", "cut", "paste", "separator",

                                     "bold", "italic", "underline", "separator",

                                     "strikethrough", "subscript", "superscript", "separator",

                                     "insertorderedlist", "insertunorderedlist", "outdent", "indent", "separator",

                                     "htmlmode"

                          ]

              ];

   

   

              These words between quotations marks are them to toolbar itens that they go to appear in the html editor.

   

              You can register new to be used. Look config.registerButton() function.

              

              It sees the code of the full html editor, to understand better.         

   

   

  Bruno Braga

   


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

  De: James Adams [mailto:james at gamepub.com] 
  Enviada em: quarta-feira, 22 de junho de 2005 08:11
  Para: The OpenCms mailing list
  Assunto: Re: [opencms-dev] xsd OpenCmsHtml editor 

   

  Is it really not possible to have the full HTML editor options available when editing an element of type OpenCmsHtml in a XMLContent object?

   

  thanks in advance

   

  James

    ----- Original Message ----- 

    From: James Adams 

    To: opencms-dev at opencms.org 

    Sent: Wednesday, June 22, 2005 7:42 AM

    Subject: [opencms-dev] xsd OpenCmsHtml editor 

     

    Hello,

     

    I have an XMLContent type with a number of elements

     

    In the .xsd file the element MainText is of type OpenCmsHtml.  When adding elements there is a rich text editor for this element but it does not have the options for adding images and links as with the full html editor.  Can I enable this?

     

    .xsd file below

     

    regards

     

    James

     

     

     

     

     

    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
     
     <xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/> 
     <xsd:element name="Developments" type="OpenCmsDevelopments"/>
     
     <xsd:complexType name="OpenCmsDevelopments">
      <xsd:sequence>
       <xsd:element name="Development" type="OpenCmsDevelopment" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
     </xsd:complexType>

     

     <xsd:complexType name="OpenCmsDevelopment">
      <xsd:sequence>
       <xsd:element name="Headline" type="OpenCmsString" />
                            <xsd:element name="MainText" type="OpenCmsHtml" />
                            <xsd:element name="ImageUrl" type="OpenCmsString" />
                            <xsd:element name="Links" type="OpenCmsString" minOccurs="0" maxOccurs="5"/>
                            <xsd:element name="Email" type="OpenCmsString" />
       <xsd:element name="Reference" type="OpenCmsString" />   
       <xsd:element name="Telephone" type="OpenCmsString" />
                            <xsd:element name="LOOP" type="OpenCmsString" />
                            <xsd:element name="Fax" type="OpenCmsString" />
                            <xsd:element name="IsAlive" type="OpenCmsString" />
      </xsd:sequence>
      <xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
     </xsd:complexType>
            <xsd:annotation>
      <xsd:appinfo>
                            <defaults>
        <default element="LOOP" value="NULL|WAFRINET|SAFRINET|PACINET|NAFRINET|EuroLOOP|ASEANET|ANDINONET|CARINET|EAFRINET|EASINET|PACINET|LATINET|MESOAMERINET|NAMERILOOP|SACNET|bionet"/>
                                    <default element="IsAlive" value="true|false"/>
       </defaults>
       <layouts>
        <layout element="LOOP" widget="SelectorWidget" />
                                    <layout element="IsAlive" widget="SelectorWidget" />
       </layouts>
       <resourcebundle name="org.opencms.frontend.templateone.xmlcontentdemo.workplace"/>
       <mappings>
        <mapping element="Headline" mapto="property:Title" />
       </mappings>
      </xsd:appinfo>

     

     </xsd:annotation>
    </xsd:schema>

     


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



    _______________________________________________
    This mail is send to you from the opencms-dev mailing list
    To change your list options, or to unsubscribe from the list, please visit
    http://mail.opencms.org/mailman/listinfo/opencms-dev 


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

    No virus found in this incoming message.
    Checked by AVG Anti-Virus.
    Version: 7.0.323 / Virus Database: 267.7.9/23 - Release Date: 20/06/2005



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


  No virus found in this incoming message.
  Checked by AVG Anti-Virus.
  Version: 7.0.323 / Virus Database: 267.7.10/25 - Release Date: 21/06/2005
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050627/8fe4de2b/attachment.htm>


More information about the opencms-dev mailing list