wordpress-froala-wysiwyg icon indicating copy to clipboard operation
wordpress-froala-wysiwyg copied to clipboard

Causes problems on front-end

Open KTS915 opened this issue 8 years ago • 2 comments

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.

KTS915 avatar Jul 27 '17 02:07 KTS915

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. https://github.com/froala/wordpress-froala-wysiwyg/commit/9da4368f20477b14da4f316758d90cdb3a6a3647

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

gfirem avatar Mar 24 '19 12:03 gfirem

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

iradustefan avatar Mar 25 '19 23:03 iradustefan