Search code examples
tinymce

How to change activeEditor in TinyMCE?


How can I change activeEditor programetically in tinyMCE. Ex: Like if I have two editors in same page, How can I switch between them programetically?


Solution

  • We can get any instance of TinyMCE by tinyMCE.get('field-name') or by tinyMCE['field-name'] here field name will be the field TinyMCE is associated with.