Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Causes problems on front-end #4

Open
KTS915 opened this issue Jul 27, 2017 · 2 comments
Open

Causes problems on front-end #4

KTS915 opened this issue Jul 27, 2017 · 2 comments

Comments

@KTS915
Copy link

KTS915 commented Jul 27, 2017

When activated, this plugin conflicts with other javascript on the site's front-end.

The browser console reports several problems, including TypeError: jQuery(...).froalaEditor is not a function, while the useful debugging WordPress plugin, Query Monitor, reports: Broken Dependencies | froala_editor | editor-init (missing) jquery

This is all on the front-end. There are no such problems on the admin (editing) pages.

@gfirem
Copy link

gfirem commented Mar 24, 2019

I face the same issue and solve it:

  • Replacing the file name from froala_editor to froala-public inside the function enqueue_scripts on line 199 of public/class-froala-public.php
  • Replacinf the froala_editor.min.js for editor-init.js in line 313 of the same file.

I'm not sure why the file edit-init.js is not in place.

@KTS915 take a look here to see when they was included. Look like the frontend script need and update.
9da4368

@raduiacovete Would be possible you take a look and help us to see if my solutions is correct, please.

@iradustefan
Copy link
Contributor

@gfirem Please contact [email protected], I am not anymore with the Froala team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants