Try something like this to call onchange on the textarea:
function RichTextField_newInstance(instance){
RichTextField_instance = instance;
}
function RichTextField_onEvent(e){
if (e.type == 'blur') {
var value = RichTextField_instance.getBody().innerHTML;
var textArea = RichTextField_instance.formElement;
if (textArea.value != value) {
textArea.value = value;
textArea.onchange();
}
}
return true;
}
tinyMCE.init({
...
init_instance_callback : "RichTextField_newInstance",
handle_event_callback : "RichTextField_onEvent",
...
});
Regards,
Carlos
On 9/12/07, ximego <[EMAIL PROTECTED]> wrote:
>
> I use a textarea on my page, and it works well with ajax to get the value of
> textarea. please see my code:
>
> textareaComp.add(new AjaxFormComponentUpdatingBehavior("onchange"){
> protected void onUpdate(AjaxRequestTarget target) {
> .....
> }
> }
> );
>
> But when I use TinyMCE instead of textarea, the above code doesn't
> work....Any hint? Thanks in advance.
> --
> View this message in context:
> http://www.nabble.com/TinyMCE-Editor-with-AJAX-tf4430222.html#a12638380
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]