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.

General Questions /

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

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

Manually updating textfield with tinymce


Reply


1067 Views

Avatar
StuM

Community Member, 56 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?