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 exclude certain files from the plugin editor?

Ok I figured it out, there is just one filter hook in the wp-admin/plugin-editor.php that can be useful but it’s enough (otherwise one would probably need to mess with the output buffer). if(is_admin()){ add_filter(‘editable_extensions’, array($this, ‘my_editable_extensions’)); } and then function my_editable_extensions($editable_extensions){ if(empty($_POST[‘plugin’]) || (!empty($_POST[‘plugin’]) && $_POST[‘plugin’] !== “plugin-name/plugin-name.php”){ return $editable_extensions; }else{ return array_diff($editable_extensions, array(‘txt’, ‘html’)); … Read more

Multiple domains issue

It is rather easy to make WP think it is served from different domain by defining WP_HOME and WP_SITEURL constants in configuration dynamically for request. See Editing wp-config.php in Codex for details. However this only affects dynamically generated elements. Everything that is part of content isn’t modified by this, including but not limited to content … Read more