From: Kurt C. <kur...@gm...> - 2010-03-05 01:22:13
|
It may also be worth setting up a community effort to encode an XSLTForms rich text editor around the textarea and input component. I've done RTEs before - they're not that hard to pull off in general, but they also require giving up on jQuery and related libs, and you have to test them EXTENSIVELY against different platforms. This brings up a broader issue - one that I think Alain is probably in the best position to answer. Itt might be very useful if we were to set up an XSLTForms community group (possibly on GoogleCode or GIT) that would let us post community components and extensions to XSLTForms (and quite possibly to Ubiquity and Orbeon). I know this has been floated before, but the major challenge is freeing up Alain to concentrate on core improvements while others can post both extensions and cool XForms widgets (and techniques). My model is the Drupal community, but I'm not wedded to it. Kurt Cagle Managing Editor http://xmlToday.org On Thu, Mar 4, 2010 at 4:37 PM, Klotz, Leigh <Lei...@xe...> wrote: > 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 > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > |