The contents of this page are:
Introduction
When I first saw the quicktags I was amazed of the ease with which they work, but I also immediately thought: "But why didn’t they add the this tag?" The first thing I did was to hack the quicktags file and to add extra button myself. This is however not the way to do it. I realized this while working on my other Wordpress plugins. In the end I managed to add quicktags buttons for them and I figured, why not make a plugin to add any other tag? Well, that’s what I did and WP-AddQuicktag is the result. Hope you like it!
License info
Unlike all other content on my site, my plugins and scripts are released under a GNU General Public License. A copy of the full license text is included with your Wordpress distribution and can also be found here. I appreciate it when you let me know if and how you use my script…
Installation?
Installation is easy and straightforward. Download the plugin source here and rename the file from wp-addquicktag.php.txt to wp-addquicktag.php. Upload this file to your Wordpress plugins directory.
Login to your Wordpress installation and activate WP-AddQuicktag via the plugins menu. That’s it, your finished!
Use of the plugin
Using the plugin is as simple as installing it. Login to you Wordpress administration and select "Add Quicktags" under the Options menu. Now you can start adding quicktags by filling in an empty line of fields. There are three fields per quicktag:
- Buttontext
- This field is compulsory and it’s value will displayed as text on the quicktag button. If you want to add superscript you could e.g. fill in: sup
- Start tag(s)
-
This field is also compulsory and it’s value will be inserted when you click the quicktime button. In case of superscript this would be:
<sup> - End tag(s)
-
This field is optional. If you fill it in the value will be added when you click the button for a second time or when you made a selection in the textfield it will be placed at the end of the selection. In the superscript example it would be:
</sup>
Once you’ve filled in all the values, click on "Update options »" to save them. To delete a quicktag, simply delete the contents of the Buttontext field and update the options.
You could also use this plugins to insert larger pieces of code. Basically you can type anything in the fields for the start and end tags.
Download
You can download the plugin source code with this link.
Changelog and todo
0.2 - 2005-11-09 - Fixed a multi line bug.
0.1 - 2005-11-09 - This is the first release. Let’s see what happens next.
I am thinking about a more advanced version of this plugin which can also make replacements. This way you can make custom tags which can be inserted by a quicktag button and which will be replaced by some "real" code when the page is parsed for online viewing.
Problems / Questions / Suggestions / Support?
Sorry, but I do longer give support for this plugin. Development has been dead for 2 years and this page is nothing more than an archive.