Out of the corner of my eye

Exploring HumanStateSpace

Out of the corner of my eye header image 2

Get current form data from TinyMCE

December 6th, 2007 · No Comments

If you’re using TinyMCE for some kind of web GUI and want to access the current data contained in the textarea using JavaScript, you may have noticed that just getting it will only give you what was loaded into the textarea’s inner content in the HTML. To get the content the user has inputted into the textarea without submitting the form, simply call

tinyMCE.triggerSave(0,1);

This will force tinyMCE to write back its internal data to the form.

Tags: Web dev

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment