Using TinyMCE in plugin?

I’d say the solution is to search through the Editor javascript code, and see how it handles the “tinymce” value in the fields array. Then just to change all links to the existing TinyMCE installation.

How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]

As per WP Code Snippet blog, it looks like this is one way: Add this code snippet to your functions.php file. // add async and defer to javascripts function wcs_defer_javascripts ($url) { if (strpos($url, ‘.js’) === FALSE) { return $url; } if (strpos($url, ‘jquery.js’)) { return $url; } return “$url’ async onload=’myinit()”; } add_filter(‘clean_url’, ‘wcs_defer_javascripts’, … Read more