crayon-syntax-highlighter
crayon-syntax-highlighter copied to clipboard
jQueryCrayon is not defined
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.
I am seeing this same behaviour
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