Problem with rich text area control when bound node changes

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with rich text area control when bound node changes

Nick Van den Bleeken-2
Hi,

When we run the attached form in Orbeon following the instruction in the test case (insert, insert, switch). The values of the text areas aren't updated as expected.

The scenario uses:
1) insert action to insert a new node (which will be bound by a rich text area control)
2) insert action to insert a new node (which will be bound by a rich text area control)
3) insert and delete action which switches the order of the two inserted nodes
-> You would expect that the values in the rich text-controls respect the new values of the nodes, but this isn't.

I can reproduce this on the latest version of orbeon which I build from the master branch of github.

Do you have any idea what is causing this update problem and how we can work around it?

Kind regards,

Nick Van den Bleeken
R&D Manager

Phone: +32 3 425 41 02
Office fax: +32 3 821 01 71
[hidden email]
www.inventivedesigners.com



________________________________

Inventive Designers' Email Disclaimer:
http://www.inventivedesigners.com/email-disclaimer


--
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

textarea-contents.xhtml (2K) Download Attachment
ATT00001.txt (6 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problem with rich text area control when bound node changes

Alessandro  Vernet
Administrator
Nick,

I was able to reproduce this, created a bug for this, and will see if we can fix this quickly. And thank you for the detailed test case!

https://github.com/orbeon/orbeon-forms/issues/868

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Problem with rich text area control when bound node changes

Alessandro  Vernet
Administrator
In reply to this post by Nick Van den Bleeken-2
Hi Nick,

This was a tricky case; it is now fixed, and will be in the next nightly build. Note that we are planning to replace the RTE, now used by an <xforms:textarea type="text/html"> by the TinyMCE, which can already use today with <fr:tinymce>. And the implementation using the TinyMCE didn't have that issue.

https://github.com/orbeon/orbeon-forms/issues/868

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Problem with rich text area control when bound node changes

Nick Van den Bleeken-2
Hi Alex,

Sorry that I missed your e-mail. Thank you very much for the fast reply and fix for the problem. I had no idea were to start looking to fix this.

Thank you for the TinyMCE pointer. We were thinking of building an XBL component that used the inline ckeditor [1] (the person prototyping this had some trouble doing this, so we abandoned that idea for now). But maybe we accomplish the same by extending fr:tinymc because after a quick google I found http://one-v.co.il/arnold/inlineTinyMCE/index.html

We would like to have an inline editor because then we can easily apply the styling of the surrounding page on the text in the editor, and would make sure that when we generate the output it is exactly as it was when it was edited.

If we have time to pick it up again, and manage to do it, we will be happy to contribute the changes back to Orbeon if you are interested in the code changes.

Kind regards,

Nick Van den Bleeken
R&D Manager

Phone: +32 3 425 41 02
Office fax: +32 3 821 01 71
[hidden email]
www.inventivedesigners.com


1: http://ckeditor.com/demo#inline

On 11 Mar 2013, at 19:54, Alessandro Vernet <[hidden email]> wrote:

> Hi Nick,
>
> This was a tricky case; it is now fixed, and will be in the next nightly
> build. Note that we are planning to replace the RTE, now used by an
> <xforms:textarea type="text/html"> by the TinyMCE, which can already use
> today with <fr:tinymce>. And the implementation using the TinyMCE didn't
> have that issue.
>
> https://github.com/orbeon/orbeon-forms/issues/868
>
> Alex
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Problem-with-rich-text-area-control-when-bound-node-changes-tp4656347p4656367.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
>
> --
> 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

________________________________

Inventive Designers' Email Disclaimer:
http://www.inventivedesigners.com/email-disclaimer


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Problem with rich text area control when bound node changes

Alessandro  Vernet
Administrator
Hi Nick,

Cool, thank you for confirming this indeed fixes the issue. And the inlineTinyMCE looks very interesting; I wasn't aware that such an extension existed. We are working on allowing label, hint, help, alerts to be in HTML, in Form Builder. In a first implementation, we'll just allow form authors to type HTML tags (really typing the HTML source), but this is a place where the inlineTinyMCE would fit nicely.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet