I want to be able to attach the textarea mediatype=text/html input to a repeatable element (paragraph). I'm getting an error with this, not dissimilar to the one documented in the link http://n4.nabble.com/issue-when-adding-html-editor-inside-repeat-control-td36674.html#a36674 . It has been two years since this post. Is this still an issue? I could have sworn I had this working a few weeks ago before the holiday, but maybe I'm wrong.
What are potential solutions for the problem? Ethan -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
As a followup, attached is a test case for the sandbox. It fails on my work machine, a web server, and Orbeon's sandbox.
The error is this: Exception in client-side code.
Ethan On Wed, Jan 6, 2010 at 1:45 PM, Ethan Gruber <[hidden email]> wrote: I want to be able to attach the textarea mediatype=text/html input to a repeatable element (paragraph). I'm getting an error with this, not dissimilar to the one documented in the link http://n4.nabble.com/issue-when-adding-html-editor-inside-repeat-control-td36674.html#a36674 . It has been two years since this post. Is this still an issue? I could have sworn I had this working a few weeks ago before the holiday, but maybe I'm wrong. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws test.xhtml (2K) Download Attachment |
Administrator
|
Ethan, Thank you for the reproducible test case. Indeed, this is a bug. The problem is that in this case, we don't include the necessary JavaScript file. We determine what to include by looking at the tree of controls that is getting built, and since you don't have any iteration, there is no editor in the tree, and so the JavaScript is not included. This is obviously wrong, and I opened a P9 bug for this (our highest priority): In the meantime, you can get arround this by adding a "dummy" HTML editor somewhere in your page that you hide with CSS. You might want to bind that editor to a dummy node (or even dummy instance) that doesn't contain anything. E.g.: <xhtml:div style="display: none"><xforms:textarea ref="instance('dummy')" mediatype="text/html"/></xhtml:div> Alex
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Alex,
Thanks. I played around and inserted a <p/> into the <publicationstmt> in the main instance, and didn't have any problems after that. The reason I came across this today and not a few weeks ago when I first started to experiment with the RTE is because I was loading files that already had paragraphs rather than creating new files from scratch. <p/> is optional and repeatable, so it's important that it can occur zero or more times. Ethan On Wed, Jan 6, 2010 at 8:44 PM, Alessandro Vernet <[hidden email]> wrote:
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Ethan, I'm glad this workaround works for you. And we'll do our best here to fix this one as quickly as possible. Alex
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |