I'm using TinyMCE with WordPress. I need it as a part of my custom WordPress plugin. So there is a page containing multiple TinyMCE editors, each with different ID. Each of them was created with wp_editor() function. When user performs an action like clicking the button I want to set content of the particular editor using tinymce.get("exampleID").setContent(). That works fine as long as TinyMCE was loaded in Visual Mode. Like there are 2 modes: visual and text.
Currently I just hide the toggle mode buttons but I would know if there is any solution for that.