After you email I tried posting to ajax4jsf.  I'm not sure if it went
through.

However, I dug around the code for tinymce and figured out a way to do it,
which I'll share in case anybody has the same issue.

I figured the reason was that tinymce isn't actually modifying the
textarea's data when you edit it and might be attaching something to the
form's onsubmit event to save the value.  I'm not 100% of the mechanism, but
it appears to be something like that.

I added the following the ajax4jsf command button...

onclick="tinyMCE.triggerSave()"

This appears to save the formatted value to the textarea, which is then sent
to server.  Now the formatted text shows up.

In case anybody with tinymce experience knows what triggerSave does, and its
a bad thing, please let me know.

-Kevin

On 12/7/06, Jeff Bischoff <[EMAIL PROTECTED]> wrote:

Kevin,

You might try asking this on the Ajax4jsf mailing list or the tinymce
forum... unless you already sent it to the ajax list, and I just haven't
gotten it yet? :)

Regards,

Jeff Bischoff
Kenneth L Kurz & Associates, Inc.

Kevin Galligan wrote:
> I'm using facelets and myfaces (1.1.5-SNAPSHOT).  I use the tiny mce
editor
> for formatted text.  Recently I tried adding ajax4jsf to certain pages.
> This works great for plain textareas, but when the text area is a tiny
mce
> one, it doesn't work.
>
> I know this is pretty specific, but I'm hoping somebody tried the same
and
> can get it to work.  Its not absolutely required, but I'd like to have
the
> formatted text and the ajax.
>
> Thanks in advance,
> -kevin
>



Reply via email to