I have several instances of TinyMCE on one page.
I have a javascript autoload running in the background that automatically saves forms in the database via a POST request. This works well with one form, where I can set the item id to init. However, in my scenario, the user may have a variable number of TinyMCE forms, so having multiple hard-code identifiers does not seem practical.
TL; DR: dynamically capture all TinyMCE instances on the same page without knowing the instance id. Or any other approach to save multiple forms in one auto_save () function.
Stanislav Palatnik
source share