Thanks, we’ll take a look and see if we can reproduce!
We are not able to reproduce the issue. Do you have the Classic Editor plugin installed? Can you see if you can reproduce the error using one of the core themes (twentytwenty*)? What theme are you using?
One other thing to try: in Insert Pages settings, try setting the “TinyMCE filter” option to compatibility mode and see if that makes a difference.
You can also try just commenting out the filter hooks that register the TinyMCE plugin for Insert Pages: https://github.com/uhm-coe/insert-pages/blob/master/insert-pages.php#L311-L312
Thank for your work on this. Of course I am in compatibility mode. We are running on LiveCanvas but having the same issue with other themes.
for now I commented
public function insert_pages_handle_filter_mce_external_plugins( $plugins ) {
if ( self::$is_admin_initialized && ! array_key_exists( ‘wpInsertPages’, $plugins ) ) {
$plugins[‘wpInsertPages’] = plugins_url( ‘/js/wpinsertpages_plugin.js’, FILE );
}
return $plugins;
}
Problem seems to be:
wp-tinymce.js?ver=49110-20201110:3 Failed to initialize plugin: wpInsertPages ReferenceError: wpInsertPagesL10n is not defined
at new <anonymous> (wpinsertpages_plugin…9110-20201110:44:13)
at Ew (wp-tinymce.js?ver=49…0-20201110:3:330473)
at Array.<anonymous> (wp-tinymce.js?ver=49…0-20201110:3:332223)
at Object.jt [as each] (wp-tinymce.js?ver=49110-20201110:3:29356)
at Aw (wp-tinymce.js?ver=49…0-20201110:3:332173)
at tN.<anonymous> (wp-tinymce.js?ver=49…0-20201110:3:333551)
at Array.<anonymous> (wp-tinymce.js?ver=49110-20201110:3:96969)
at jt (wp-tinymce.js?ver=49110-20201110:3:29356)
at u (wp-tinymce.js?ver=49110-20201110:3:96914)
at n (wp-tinymce.js?ver=49110-20201110:3:96402)
I will investigate as soon I have got some spare time.
Cheers
Edit: just re-read your comment; the part you commented out looks better than the suggestion below!
Sounds good. If you’re already in tinymce compatibility mode, there’s a different place in the codebase where the Insert Pages tinymce plugin gets added, so you should comment that out also to disable the plugin: https://github.com/uhm-coe/insert-pages/blob/master/insert-pages.php#L1868-L1869
-
This reply was modified 4 months, 1 week ago by
Paul Ryan.
Also thanks for the detailed error message. I think the change below should fix the issue, can you try manually applying that in your environment (and uncomment the code where you disabled the tinymce plugin) and see if that addresses the issue? If so I’ll get a new version of the plugin released with the fix: https://github.com/uhm-coe/insert-pages/commit/137fe692d8f7066cf8dff9ccdf384c04b74c5372