Forum Discussion
steffenschoene please let me know if I understood the use-case incorrectly:
You are trying to add a textarea element in the DOM using Javascript and you want to initialise the TinyMCE editor on that textarea.
As you mentioned, if you use the plain old tinyMce.init() it would just initialise a brand new version of the TinyMCE Editor. However you could try passing in the "selector" field in the init options. Something like: tinyMce.init({ selector: "" }). If you give the selector of an already existing TinyMCE Editor on the page, it could just work.
Another thing you could try is obtaining the settings from the existing editor (using the global tinyMce on window) and then using it in the init options for the new editor you want.
Please let me know if this works or if you have any questions.
Thanks
Vaibhav
Related Content
- 4 years ago
- 11 months ago
- 2 years ago