WordPress.org

Forums

Crayon Syntax Highlighter
[resolved] main.style() is not a function (5 posts)

  1. TIgor4eg
    Member
    Posted 3 years ago #

  2. TIgor4eg
    Member
    Posted 3 years ago #

    I modified crayon.ja, now it's

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    And the error is gone, but there is another error:
    text.replace is not a function @ http://tigor.org.ua/wp-content/plugins/crayon-syntax-highlighter/js/crayon.js?ver=1.8.3:50

  3. TIgor4eg
    Member
    Posted 3 years ago #

    My bad. jQuery was inited after crayon.

  4. akarmenia
    Member
    Plugin Author

    Posted 3 years ago #

    Oh, WordPress should enqueue them correctly since jquery is specified as a dependency.

  5. akarmenia
    Member
    Plugin Author

    Posted 3 years ago #

    Also, IE < 9 had issues with this that I fixed in 1.9.0. Beta is on my twitter, but it will be released next week hopefully.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Crayon Syntax Highlighter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic