WordPress.org

Ready to get started?Download WordPress

Forums

Crayon Syntax Highlighter
[resolved] Code added to the top of article (9 posts)

  1. Matteo Contrini
    Member
    Posted 1 year ago #

    Hi, when I add a Crayon code using the button in the WordPress default editor and I click insert, the code block is added to the top of the article and not where the pointer is.

    I use the latest version of WordPress and Crayon Syntax Highlighter too.

    My blog url is http://www.youontech.net
    If you need it, I can give you a list of the active plugins and create a contributor account.

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

  2. jlawrence11
    Member
    Posted 1 year ago #

    I have the same issue. I haven't tried to use it since I last updated the plugin so I am guessing that is the reason..or firefox updating. I haven't had a chance to look at why it might be happening yet.

    Running Windows 7, Firefox 16
    Also happens with Ubuntu and Firefox 15

  3. jlawrence11
    Member
    Posted 1 year ago #

    From what I can tell, the error appears to be within QTags, as selectionStart is set to 0 in the visual editor...at all times it appears(unless you go into the HTML editor - which is the actual textarea being used - and move the cursor in there, then the selectionStart changes, but resets going back to the visual editor). Going in to HTML editing the insert works properly for Crayon. Crayon also inserts correctly in Visual mode in Chrome. I don't know QTags or TinyMCE well enough to try and debug it further, so I don't know how to solve this - but again, I don't think it is an error with the Crayon plugin.

    Just my opinion though - if you can fix it, I am all for it.

  4. akarmenia
    Member
    Plugin Author

    Posted 1 year ago #

    Hmm, seems to be a problem with TinyMCE and Firefox.

  5. northcamel
    Member
    Posted 1 year ago #

    Same problem!
    Ubuntu12.04 + Firefox has the problem
    Ubuntu12.04 + Chrome doesn't have the problem

    So I think something wrong with Firefox and Crayon Syntax Highlighter

    Email:northcamel@gmail.com

  6. akarmenia
    Member
    Plugin Author

    Posted 1 year ago #

    Yeah as it stands the error seems to occur in Firefox and is due to methods defined in TinyMCE. There's likely a solution that avoids using these methods or something, but I've been busy working on exams and will be free in about 2 weeks to fix these issues. In the meantime you could try rolling back a few versions or using chrome.

  7. akarmenia
    Member
    Plugin Author

    Posted 1 year ago #

    Hmm... Seems to work fine now with Firefox 16 and Crayon 1.14: https://github.com/aramkocharyan/crayon-syntax-highlighter/archive/master.zip

  8. northcamel
    Member
    Posted 1 year ago #

    work fine now with Firefox 16 and Crayon 1.14

    update your Crayon!

  9. akarmenia
    Member
    Plugin Author

    Posted 1 year ago #

    Hurray!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.