Re: [Xsltforms-support] Is there any way to put markup in atextarea in XSLTForms
Brought to you by:
alain-couthures
|
From: Klotz, L. <Lei...@xe...> - 2010-03-05 00:38:24
|
Here's what I've succesfully used to express rich text edit in XForms in the past:
<xf:textarea ref="description" mediatype="text/html">
You can also use this
<xf:textarea ref="description" appearance="ext:ckedit" />
You can also use this:
<xf:textarea ref="description" appearance="ext:ckedit" class="ckedit-full-toolbar" />
All of these are interoperable.
If you need even more, you can use the xf:extension element and put any content you want:
<xf:textarea ref="description" mediatype="text/html">
<xf:label>Description :</xf:label>
<xf:extension><ext:ckeditOptions toolbar="full" spellcheck="true" /></xf:extension>
</xf:textarea>
XForms offers abstract form controls which are then specialized by bindings, datatypes, appearance, and styling.
Leigh.
________________________________
From: Claudius Teodorescu [mailto:cla...@ya...]
Sent: Thursday, March 04, 2010 4:34 PM
To: Klotz, Leigh; support xsltforms
Subject: Re: [Xsltforms-support] Is there any way to put markup in atextarea in XSLTForms
Yes, you are right that is no need for a new form control, if one consider just editing some XML/HTML as text.
But, like I said, for certain web applications, there is a need for a full and complex rich text editor. I can only think that such extension element could have an attribute or child element specifying a certain configuration option, for instance: "full" or "basic" toolbar, UI language for editor/spell checking,etc.
The only drawback here could be that such new form control would rely on CKEditor, leaving aside other editors
Claudius Teodorescu
http://kuberam.ro
________________________________
From: "Klotz, Leigh" <Lei...@xe...>
To: Claudius Teodorescu <cla...@ya...>; xsl...@li...
Sent: Fri, March 5, 2010 2:04:15 AM
Subject: RE: [Xsltforms-support] Is there any way to put markup in atextarea in XSLTForms
I don't think you need a new form control. mediatype or appearance attributes on textarea is good enough, and interoperable. Chiba uses mediatype, for example, and even processors without rich text support will allow editing of escaped html as text.
Leigh.
________________________________
From: Claudius Teodorescu [mailto:cla...@ya...]
Sent: Thursday, March 04, 2010 1:31 PM
To: xsl...@li...
Subject: Re: [Xsltforms-support] Is there any way to put markup in atextarea in XSLTForms
Hi,
I also thought about an extension element for XSLTForms, called "richTextarea" (maybe), which would allow all sort of rich text editing (I thought about editing the files stored within eXist, and for translations (a web app to manage translations)).
I looked over web editors, found CKEditor and liked it very much, as being enough complex and flexible to be a professional extension element for XForms.
Such extension element called richTextarea should be bound to a node, just like textarea element.
My two cents.
Claudius Teodorescu
http://kuberam.ro
|