[Xsltforms-support] Integration of CKEditor into XSLTForms
Brought to you by:
alain-couthures
From: Claudius T. <cla...@ya...> - 2010-03-05 22:19:23
|
I managed to integrate it almost entirely. I still need opinions about the observer and action that should trigger the updating of the node referred by xf:textarea/@ref with the data contained by the CKEditor. The example could be checked out at http://localhost:8080/webApps/apps/sitKubera/workingTests/ckeditor.xml?_xsl=no One should modify the content of editor and press twice the button "Update instance" (I don't know why twice, but it is not important). This button pressing emulates the behaviour we need, as it implies an ev:observer (trigger) and an ev:event (DOMActivate). By default, CKEditor updates the value of initial textarea element upon submitting the respective form, but we may be interested in more subtle behaviour. Claudius Teodorescu http://kuberam.ro ________________________________ From: "Klotz, Leigh" <Lei...@xe...> To: Claudius Teodorescu <cla...@ya...> Sent: Fri, March 5, 2010 8:25:55 PM Subject: RE: [Xsltforms-support] No response on the CKEditor forums toquestion on encoding Sounds good. Since you're writing the extension you get to choose the namespace. How about http://kuberam.ro/2010/02/ckeditor ? Or whatever you'd like there. <html ... xmlns:ex="http://kuberam.ro/2010/02/ckeditor" ... > <xf:textarea ref="instance('i0')/CKEditorDescription" appearance="ex:CKEditor"> <xf:label>CKEditor textarea:</xf:label> <xf:extension> <ex:CKEditorOptions toolbar="Full" language="ro" skin="v2"/> </xf:extension> </xf:textarea> Likely Alain will want to use his own if it's an agenceXML extension he publishes, but for your own purposes or if you want to provide it yourself as an exsltforms addon you would just use your own. It just can't be the http://www.w3.org/2002/xforms namespace because the spec doesn't allow it. Leigh. ________________________________ From: Claudius Teodorescu [mailto:cla...@ya...] Sent: Friday, March 05, 2010 10:20 AM To: Klotz, Leigh Subject: Re: [Xsltforms-support] No response on the CKEditor forums toquestion on encoding Ok, I agreed with other namespace for "CKEditorOptions" element and appearance attribute value, but which one should be? I know that you are working with XForms WG, don't you have any idea of a namespace? I've chosen to express the config specifications for CKEditor by using the attributes of "CKEditorOptions" as it is scalable, so that no matter how many are they or which ones, the XSL stylesheet is aggregating them in a string for initializing the CKEditor. Claudius Teodorescu http://kuberam.ro |