I am running into a peculiar case that involves using the YUI rich text editor.
When I incorporate the YUI text editor within my nested repeat structure (by including <xf:textarea ref="." mediatype="text/html" />), include a schema reference in the <xf:model> tag, and then try to insert a sub-section after form load, I get the following error: Exception in client-side code. * Message: this._getDoc().body is undefined * File: http://localhost:8080/orbeon/ops/yui/editor/editor.js * Line number: 6230 However, if I do one of the following: 1) Change all instances of <xf:textarea ref="." mediatype="text/html" /> to <xf:input ref="." /> 2) Remove the schema attribute from <xf:model> the insertion of sub-sections works just fine. I'm wondering if this is a bug within the editor.js file or a problem with my code structure. Attached to this message is my XHTML file and XSD file, for bug reproduction purposes. Thanks in advance to anyone who can offer suggestions! ---Philip test_YUI.xhtml test_YUI.xsd |
Administrator
|
Philip,
Thank you for reporting this with an attached test case. This is indeed a bug, but it isn't an easy one to fix. I added this to the bug base and added some more details in the bug report (link below). In the meantime, I'd recommend you not to use the RTE inside a repeat if the number of iteration can change dynamically. One more reason not to do that is that the RTE is pretty heavy, and creating many RTE on the page will make the page more sluggish. So I'd recommend you just show the data in the repeat, and provide a "Edit" button that opens an <xxforms:dialog> that contains an RTE to edit the data. This way you'll have just one RTE on your page. http://forge.ow2.org/tracker/index.php?func=detail&aid=313690&group_id=168&atid=350207 Alex |
Alex,
I'll be sure to try that for the time being. The form we're working on won't have very many RTE's on it, so I don't think performance will be an issue. Thanks for the advice! ~Philip |
In reply to this post by Alessandro Vernet
Hi Alex,
I see this is scheduled for the next release and assigned to Erik. Any progress on it? We would like to be able go ahead with RTEs in repeats. In the mean time we'll look at the dialog option but given what we're trying to accomplish it's no ideal. Can you provide some more details about what you think is going on? I don't mind digging in. It seems like it fails pretty early on in the process. /r |
I am out of the office until 26th July *********************************************************************************************** This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.
Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.
Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards. *********************************************************************************************** The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG
|
In reply to this post by rdanner
This is probably a reasonable stop gap .. although managing the binding to the text area might be a bit difficult. http://developer.yahoo.com/yui/examples/editor/multi_editor_source.html |
I am out of the office until 26th July *********************************************************************************************** This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.
Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.
Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards. *********************************************************************************************** The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG
|
Free forum by Nabble | Edit this page |