WordPress.org

Ready to get started?Download WordPress

Forums

Crayon Syntax Highlighter
[resolved] Adding a button to WP Text Tab (2 posts)

  1. pha3z
    Member
    Posted 1 year ago #

    I notice you've added a nice Crayon button to the Text tab of the WP Editor. It seems extremely hard to find info on the web on how to do this. Everyone always talks about buttons in the Visual Tab.

    All I want is a button that they can click and it sticks an HTML snippet into the window where their cursor is. It's working fine for the Visual Tab, but of course the user has to switch over to the text tab to actually see it and edit it. Can you direct me to some info on this issue?

    Btw, Crayon rocks. Love it!

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

  2. pha3z
    Member
    Posted 1 year ago #

    Disregard this. I finally found some stuff about it on the web. And evidentally Crayon is using an older method by manipulating the DOM through jQuery. They're saying the correct way to do it is here:

    http://wordpress.stackexchange.com/questions/29675/add-quicktag-buttons-to-the-html-editor

    Although, at this particular moment it's not working for me. :( Not sure what I'm doing wrong yet.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.