Closed oferlaor closed 1 year ago
Sorry … I can't reproduce this. What exactly are you are doing?
Sorry … I can't reproduce this.
What exactly are you are doing?
Install the plugin "instant images" in addition to the-paste.
Now open a post. Press insert media button and see that you get a console error.
You can see that "the paste" competes with instant images (https://wordpress.org/plugins/instant-images/) on the top button on the Add Media screen.
When both are present, going into the classic editor and pressing Add Media produces this error.
Thanks! I can see: the Copy & Paste Tab is missing in the media library... I just released Version 2, bringing a revised UX concept and rewritten JS. No issues with Instant Images encountered so far... Fell free to close the issue, if it is fixed for you (or to come back if not).
I can't install version 2.0.1, getting this error:
wp-tinymce.js?ver=49110-20201110:3 Failed to initialize plugin: the_paste TypeError: Cannot read properties of undefined (reading 'options')
at new n (the-paste-plugin.js?wp-mce-49110-20201110-tadv-5900:1:519)
at Ew (wp-tinymce.js?ver=49110-20201110:3:330473)
at Array.<anonymous> (wp-tinymce.js?ver=49110-20201110:3:332223)
at Object.jt [as each] (wp-tinymce.js?ver=49110-20201110:3:29356)
at Aw (wp-tinymce.js?ver=49110-20201110:3:332173)
at tN.<anonymous> (wp-tinymce.js?ver=49110-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)
@see #45
I patched it by wrapping this code with a try/catch:
Here is the patched code: