WordPress.org

Ready to get started?Download WordPress

Forums

Crayon Syntax Highlighter
Newest Version Causing jQuery Errors... (7 posts)

  1. drbigfresh
    Member
    Posted 2 years ago #

    I just upgraded your plugin to the latest version, and it's causing some conflict with the javascript window jquery object.

    This is the error:
    Uncaught TypeError: Property '$' of object [object Window] is not a function

    and the error is appearing anywhere there is a:
    $(document).ready(function() {});

    in the other scripts...

    http://wordpress.org/extend/plugins/crayon-syntax-highlighter/

  2. jasontremblay
    Member
    Posted 2 years ago #

    Yep, I'm also seeing this problem.

  3. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

  4. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    This is the only case it is used:

    $(document).ready(function() {
    	CrayonSyntax.init();
    });

    Could you note the file and line of the error?

  5. roketto
    Member
    Posted 2 years ago #

    Seem to be having this issue as well... Will post more after I look into it.

  6. benwong.me
    Member
    Posted 2 years ago #

    I managed to fix this by adding the following line to the end of query.popup.js, which is the last JS file inserted by CrayonSyntax.

    $ = jQuery;

  7. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks I'll fix that shortly in a new release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags