crayon-syntax-highlighter icon indicating copy to clipboard operation
crayon-syntax-highlighter copied to clipboard

jQueryCrayon is not defined

Open gthvidsten opened this issue 10 years ago • 2 comments

In a plugin, if adding a rich text editor to an admin page using the wp_editor() method, the Crayon button is not visible in the editor toolbar, and the following message appears in the javascript console in the browser:

jQueryCrayon is not defined

If the Crayon plugin is deactivated the error disappears. If the wp_editor method is commented out the error disappears.

The “Attempt to load Crayon's CSS and JavaScript only when needed” option makes no difference.

Using the built in WordPress themes makes no difference.

gthvidsten avatar Apr 15 '15 21:04 gthvidsten

I am seeing this same behaviour

spragucm avatar Jul 02 '15 20:07 spragucm

Hi @gthvidsten @spragucm and any other people still running into this problem. For me, it helped to disable "JavaScript file concatenation" in my wordpress (most likely within a page speed plugin like WP-FastestCache or something like that). Maybe it does help you, too.

Cheers

Chris

chrishaensel avatar Jul 02 '19 05:07 chrishaensel