Back before about WordPress 2.7 or so it was easily possible to add buttons to the ones already there on the html editor. I used this to add things like this to it:
edButtons[edButtons.length] = new edButton('ed_nofol' ,'AddNF' ,' rel="nofollow" ' ,'' ,'[' ,-1 ); // special case
This gave me a button that inserted ‘ rel=”nofollow”‘
Later I did even better, I copied the code for the “link” button, renamed it NFLink, and made it create a nofolow link.
Lately I’ve been trying to add these functions to WP 3.4.1. I have tried for hours to find a plugin that will do this (say by adding a checkbox to the add link popup giving the option to make the link nofollow)
While I have found a few, none of them work and most haven’t been updated in a very long time.
I did find one that works but it applies nofollow to every link in the post and that is not acceptable.
I’ve been fighting with the completely unformatted nightmare of a spaghetti code mess that is quicktags.js for hours now and I’m ready to break something.
Will someone PLEASE tell me how to do this thing that used to be so easy??
- The topic ‘how do I add custom buttons to quicktags.js?’ is closed to new replies.