Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Manually updating textfield with tinymce

Go to End



Community Member, 59 Posts

28 April 2009 at 4:00pm

Edited: 28/04/2009 4:05pm

Hi Guys,

I've written an admin component which has a form containing an HTMLTextEditor and uses AJAX to submit the form.

This code seems to work perfectly, except in IE. In IE, the textarea for the editor doesn't receive the content from the tinymce area until after the form has been submitted.

I've Googled, and have found tinyMCE.triggerSave() as a solution, except that doesn't work in IE either

I'm using Ajax.SubmitForm() to submit the form. I've tried attaching to the form submit, and to the clicking of the submit button(allowing Ajax.SubmitForm() to submit it), but nothing seems to work.

When attaching to form, each submit sends the editor text from the previous submit, when attaching to the submit button, it's always blank.

SS version: 2.3.1

Any ideas or pointers?