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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


1457 Views

Avatar
StuM

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?