This plugin, Jayj Quicktag, allows you easily to add custom Quicktags to the post, page or a custom editor.
It adds a settings page where you can add all the Quicktags you want (see Screenshots)
It’s uses the new WordPress 3.3 Quicktags changes so it won’t work with older versions of WordPress.
It supports both import and export of your Quicktags so you easily can add them to another WordPress install.
Download
Installation
- Install Jayj Quicktag either via the WordPress.org plugin directory, or by uploading the files to your
/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to the settings page
Settings > Jayj Quicktag - Add all the Quicktags you want!
FAQ
- Does this work with older versions than 3.3?
No, sorry. Due to the javascript changes in 3.3 this plugin does not work with older versions.
- Can I add a self-closing Quicktag?
Yes. You can add a self-closing Quicktag (like <hr />) by leaving “End Tag(s)” empty.
- Can I delete a Quicktag?
Yes, you can. There’s two ways. The first one is to click the delete link on the right (you’ll see it when you roll over the row)
The other way is to leave the “Button Label” field empty.
- Can I change the order of the Quicktags?
Yes. Since 1.2 you can change the order of the tags. Just roll over the number on the left and you should to able to drag ‘n’ drop the rows.
- I’m a theme author, can I set up default Quicktags if a user choose to use this plugin?
Yes, you can. If you put this code in your theme’s functions.php, they will automatically be added if a user install this plugin
function my_theme_jayj_quicktag_defaults( $defaults ) {
$defaults = array( 'buttons' => array(
array(
'text' => 'h3',
'title' => 'Heading 3',
'start' => '<h3>',
'end' => '</h3>'
),
array(
'text' => 'hr',
'title' => 'Horizontal line',
'start' => '<hr />',
'end' => ''
),
) );
return $defaults;
}
add_filter( 'jayj_quicktag_defaults', 'my_theme_jayj_quicktag_defaults' );
Plugin authors can use this method as well.
- Can I export/import Quicktags?
Yes. Version 1.1 introduced the import and export feature.
On the options page, click the “Export Quicktags” title. That should give you a textarea with some strange looking code.
You should copy/save that so you can use it to import on another site.
To find the import feature, click on the “Import Quicktags” on the same page. Paste the copied code into the textarea and click “Import Quicktags”.
The Quicktags should now be imported and it doesn’t overwrite the old ones.
Changelog
1.2.3
- Bug fix: Quicktags not displayed when using single quotes in the start and end tags.
1.2.2
- The plugin is now internationalized
- Danish translation added
1.2.1
- Somehow the javascript and CSS didn’t get included
1.2
- You can now change the order of the Quicktags. Just drag ‘n’ drop them on the settings page
- You can easier remove Quicktags. Each row has a delete link on the right
- You can now add more than one Quicktag a time
- The settings page Javascript and CSS has been moved to seperate files
1.1.1
- Don’t include the Quicktags javascript on pages without an editor
1.1
- You can now export and import Quicktags
- Fixed rare bug with Quicktags not deleting
1.0
- Initial Release



