ellatrix / wp-front-end-editor

Front-end Editor for WordPress
https://wordpress.org/plugins/wp-front-end-editor/
341 stars 87 forks source link

Auth script error #272

Closed ghost closed 7 years ago

ghost commented 8 years ago

Hello, Thank you very much for this wonderful plugin!

I've installed version 1.1.0 and there's a couple of issues I've run into.

Trying it out on WP 4.4.1 with Twenty Fifteen 1.4, the plugin works fine.

The issues there, is that I'm getting an error in console "Uncaught TypeError: Cannot read property 'hasClass' of undefined" from wp-auth-check.min.js and the message "The content on the server and the content in the editor is different. This may be due to errors." from fee.min.js.

If the plugin is disabled there's no error.

When I've changed themes, in particular I've tried it with Twenty Sixteen 1.1 and a fresh copy of underscores starter theme, I couldn't update nor cancel the changes. The error in the console was "Uncaught TypeError: Cannot read property 'body' of undefined" from tinymce.min.js.

All these on localhost, with fresh WP installation and only wp-front-end-editor running.

I'm attaching two (2) gif files, demonstrating the issues mentioned above.

anim-01

anim-02

ellatrix commented 8 years ago

Thanks for your feedback. You can safely ignore the message "The content on the server and the content in the editor is different. This may be due to errors." I will investigate the others. It looks like the body error only happens with the latest theme.

mariusveltan commented 8 years ago

Hi, all!

"body" error indeed gets triggered on theme Twentysixteen, when initializing the editor on the "screen-reader-text" element of the post Edit Post link, to the side of the post content (screenshots below).

screen shot 2016-05-25 at 23 19 31

screen shot 2016-05-25 at 23 19 59
ellatrix commented 7 years ago

Removed in cbccd5c.