Ok, i have written a ugly patch which solves the problem for my installation. You can apply this patch using git, or just copy the changed bits.
diff --git a/tinymce/dialog.php b/tinymce/dialog.php
index 40c7410..f17d413 100644
--- a/tinymce/dialog.php
+++ b/tinymce/dialog.php
@@ -1,7 +1,15 @@
<?php
-require_once('../../../../wp-load.php');
-require_once('../../../../wp-admin/includes/admin.php');
+for ( $i = 0; $i < $depth = 10; $i ++ ) {
+ $wp_root_path = str_repeat( '../', $i );
+
+ foreach ( array( '/wp-load.php', '/wp-admin/includes/admin.php' ) as $file ) {
+ foreach ( glob( $wp_root_path . "*" . $file ) as $filename ) {
+ require_once($filename);
+ }
+ }
+}
+
do_action('admin_init');
if (!is_user_logged_in()){
diff --git a/tinymce/editor_plugin.js.php b/tinymce/editor_plugin.js.php
index 91a06bf..41007fe 100644
--- a/tinymce/editor_plugin.js.php
+++ b/tinymce/editor_plugin.js.php
@@ -1,7 +1,15 @@
<?php
-require_once('../../../../wp-load.php');
-require_once('../../../../wp-admin/includes/admin.php');
+for ( $i = 0; $i < $depth = 10; $i ++ ) {
+ $wp_root_path = str_repeat( '../', $i );
+
+ foreach ( array( '/wp-load.php', '/wp-admin/includes/admin.php' ) as $file ) {
+ foreach ( glob( $wp_root_path . "*" . $file ) as $filename ) {
+ require_once($filename);
+ }
+ }
+}
+
do_action('admin_init');
if (!is_user_logged_in()){
Although I would like to point out that including wp_load.php is not the right way to go, take a look at the following on how to solve this problem the “right” way: https://ottopress.com/2010/dont-include-wp-load-please/
I don’t have that much spare time on my hands to rewrite so much code and test it to do it the nice way myself, so maybe you guys want to implement it this way yourself, or take my patch after you’ve tested it enough.