How to use WP switchEditors.switchto(this) JS function in your own script?
switchEditors is written only to handle request between html, tmce, tinymce options. It’s no luck to extend it functionality. Better use of jQuery events like $(el).on(‘click, … ) // WP 3.8 build You can extend standard WordPress function in order to make some custom functionality like this: (function ( $ ) { “use strict”; $(function … Read more