W3C home > Mailing lists > Public > public-forms@w3.org > March 2013

Specifying RTE use in XSLTForms

From: Alain Couthures <alain.couthures@agencexml.com>
Date: Tue, 19 Mar 2013 22:27:57 +0100
Message-ID: <5148D85D.3020006@agencexml.com>
To: Forms WG <public-forms@w3.org>

The simple use of the mediatype attribute would not be powerful enough 
for XSLTForms users.

XSLTForms is already implementing RichText editors integration with a 
definition of a dedicated schema type.

This definition allows to provide parameters of any kind to the 
corresponding editor. Defining different types with different parameters 
permits to have different rendering of RichText editors in the same 
form. The corresponding schema can be shared between different forms 
when stored in an independent file.

For example:
         <simpleType name="standardHTML">
           <restriction base="xsd:string" xsltforms:rte="TinyMCE"/>
                     theme : "advanced",
                     skin : "o2k7",
                     plugins : "lists",
                     theme_advanced_buttons1 : 
                     theme_advanced_buttons2 : "",
                     theme_advanced_buttons3 : "",

Parameters are serialized into the appinfo element. This syntax has been 
validated by the Schema Work Group.

XSLTForms can support different editors so its own rte attribute is used 
to specify which one is associated with this schema type.

HTML is not the unique interesting possibility. For example, there are 
also some Javascript libraries for editing different programming languages.

What do you think?

Received on Tuesday, 19 March 2013 21:28:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:14:08 UTC