Re: [Xsltforms-support] [exsltforms] Rich Text Editors and editing existing mark-up
Brought to you by:
alain-couthures
From: Claudius T. <cla...@ya...> - 2011-05-18 16:30:17
|
Hi, Do you have an online demo for this? Claudius Teodorescu http://extxsltforms.sourceforge.net/sitKubera/index/index.xml ________________________________ From: Philip Fennell <Phi...@ma...> To: Claudius Teodorescu <cla...@ya...> Cc: support xsltforms <xsl...@li...> Sent: Wed, May 18, 2011 6:56:58 PM Subject: RE: [exsltforms] Rich Text Editors and editing existing mark-up Claudius, The text I entered in the RTE widgets is: I was walking through the park one day In the merry, merry month of May... The fragment of the XML instance submitted, and saved, to the server looks like this: <exec_summary><p>I was <em>walking </em>through the <strong>park </strong>one day,<br></p><p>In the merry, merry month of May...<br></p></exec_summary> However, when the document, containing the above fragment, is retrieved as an instance in the form I do not see the text rendered in the widget. I’ve investigated the problem further and found that, in the case of TinyMCE, if the same string is embedded in an in-line instance then the text does appear. Therefore, as the problem affects more than one RTE widget, could this be an encoding issue or something in the way the document is parsed as an instance. Regards Philip From:Claudius Teodorescu [mailto:cla...@ya...] Sent: Wednesday, May 18, 2011 4:34 PM To: Philip Fennell Cc: support xsltforms Subject: Re: [exsltforms] Rich Text Editors and editing existing mark-up Hi, Philip, I am glad that you experienced with many RTEs. As one can see in exsltforms examples here, the text rendered by RTEs have to be escaped (look at the source). The reason for this is that xf:textarea/@ref can only be string. Claudius Teodorescu http://extxsltforms.sourceforge.net/sitKubera/index/index.xml ________________________________ From:Philip Fennell <Phi...@ma...> To: Claudius Teodorescu <cla...@ya...> Cc: "xsl...@li..." <xsl...@li...> Sent: Wed, May 18, 2011 6:18:42 PM Subject: [exsltforms] Rich Text Editors and editing existing mark-up Claudius, I have been experimenting with three of the Rich Text Editors (RTE): CKEdit Xinha TinyMCE and although I could only get CKEdit and TinyMCE to work with r494 of XSLTForms I have noticed one problem with both CKEdit and TinyMCE. They allow you to enter new text and when you submit the form the formatted text is sent to the server. However, when I retrieve a document from the server that has rich text mark-up in it, neither of the editor widgets display the text. The text is there, in the instance, in both cases but it is not rendered in the widget. Do you have any idea how this might happen? Regards Philip Fennell Consultant MarkLogic Corporation One Kingdom Street Paddington Central London W2 6BD United Kingdom Mobile: +44 (0) 7824 830 866 Tel: +44 (0) 203 402 3619 email Phi...@ma... web www.marklogic.com |