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

  1. pha3z
    Posted 2 years 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!


  2. pha3z
    Posted 2 years 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:


    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

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

About this Topic


No tags yet.