We're attempting to implement the rich text editor in a variety of ways - using the dijit editor in a custom control / html, wrap a textarea input with a dijit editor ( see tid=60 ), and out of the box. We're using Version 6 with WM_HSG_6.0.0004 patch.
Out of the box appears promising in its similarity to the other controls as far as page design, binding, etc. However, we've run into something unexpected. Performing a Form Submission initially looks like it will work. But, when doing an Ajax Submission the data never makes it to the message input to the controller. Bindings are setup exactly the same for each type of submission. Also, when a Form Submission is performed followed by an edit followed by an Ajax submission, the before edit content shows up in the message input to the partial page controller.
It appears that a Form Submission will copy the editor content to a hidden textarea with the id that is specified on the design page. The Ajax Submission does not. Is this a bug? Is there a workaround snippet we can add to a button/link event before an Ajax Submission?
Yes, unfortunately this is a known issue with the Rich Text Editor control when using Ajax Submissions.
Luckily there is a relatively easy work around for it though.
Just add a 'Set Field Value' action to your event immediately before the Ajax Submission action, and set both the 'Target Field' and 'Determine Value' options to be your rich text editor field.
This should force the underlying textarea for the rich text control to get correctly updated, and so the correct value will be included in the Ajax submission call.
Hopefully this will resolve the problem for you, but please let me know if you have any further questions.
RE: WYSIWYG Editor Control
You should notice a control called Text Area (Rich Text Editor) under the Basic Form Controls palette section. This might meet your needs.
Regards
Abdul
RE: WYSIWYG Editor Control
RE: WYSIWYG Editor Control
http://www.hyfinity.com/node/71
Hope it works for you.
Abdul
RE: WYSIWYG Editor Control
RE: WYSIWYG Editor Control
Yes, the search engine isn't the best :) I'm hoping there will be an improved version at some point in the future.
RE: WYSIWYG Editor Control
We're attempting to implement the rich text editor in a variety of ways - using the dijit editor in a custom control / html, wrap a textarea input with a dijit editor ( see tid=60 ), and out of the box. We're using Version 6 with WM_HSG_6.0.0004 patch.
Out of the box appears promising in its similarity to the other controls as far as page design, binding, etc. However, we've run into something unexpected. Performing a Form Submission initially looks like it will work. But, when doing an Ajax Submission the data never makes it to the message input to the controller. Bindings are setup exactly the same for each type of submission. Also, when a Form Submission is performed followed by an edit followed by an Ajax submission, the before edit content shows up in the message input to the partial page controller.
It appears that a Form Submission will copy the editor content to a hidden textarea with the id that is specified on the design page. The Ajax Submission does not. Is this a bug? Is there a workaround snippet we can add to a button/link event before an Ajax Submission?
Thank you,
Mike
RE: WYSIWYG Editor Control
Yes, unfortunately this is a known issue with the Rich Text Editor control when using Ajax Submissions.
Luckily there is a relatively easy work around for it though.
Just add a 'Set Field Value' action to your event immediately before the Ajax Submission action, and set both the 'Target Field' and 'Determine Value' options to be your rich text editor field.
This should force the underlying textarea for the rich text control to get correctly updated, and so the correct value will be included in the Ajax submission call.
Hopefully this will resolve the problem for you, but please let me know if you have any further questions.
Regards,
Gerard
RE: WYSIWYG Editor Control
Thank you for the advice; it appears that did the trick.
cheers,
Mike