Using wp_editor(), can't find TinyMCE JS Files in wp-includes

When adding a tinyMCE editor on the front end using wp_editor(), I get a 404 not found for theme.js. Turns out, it is looking for it here:

[theme folder]/dist/scripts/themes/modern/theme.js?wp-mce-4800-20180716

instead of it’s actual location which is here:


I can ‘fix’ this by manually moving the contents of /wp-inclues/js/tinymce/ into my /dist folder, but thats obviously not ideal.

it seems that WP is confused as to where the wp-includes folder is. Is there a way I can point WP to look in the right place?

This topic was automatically closed after 42 days. New replies are no longer allowed.