Jump to:

23478 Posts in 18950 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Manually updating textfield with tinymce

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

Page: 1
Go to End
Author Topic: 1001 Views
  • StuM
    Community Member
    56 Posts

    Manually updating textfield with tinymce Link to this post

    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?

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.