[opencms-dev] xsd OpenCmsHtml editor

Saranyu Lavanyakul saranyu at cmu.edu
Thu Aug 4 19:42:42 CEST 2005


Hi all,

I'm trying to use xsd type "OpenCmsHtml" for my xml page.
But the OpenCmsHtml type doesn't seem to have option for font face and 
font color, does anyone know how to enable this?

Also, where should I look for other xsd type that is supported? Like images?

Thank you
Saranyu L.




Saranyu Lavanyakul wrote:

> Hi James,
>
> Did you manage to get this work using xsd? I am having the same 
> problem here.
> Thanks a lot.
>
> Saranyu L.
>
>
>
> James Adams wrote:
>
>> 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
>>
>
>
>
>
> _______________________________________________
> 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
>





More information about the opencms-dev mailing list