Search Over 18,000 FREE Plugins from the Official WordPress Plugin Directory Repository

AddQuicktag

This plugin make it easy, Quicktags add to the html - and visual-editor.

This plugin make it easy, Quicktags add to the html - and visual-editor.. It is possible to ex- and import your Quicktags.

WP-AddQuicktag for WordPress is in originally by Roel Meurders. The versions of the Repo to AddQuicktag are newer versions, completly rewrite with version 2.0.0 and more functionalities.

The plugin add the quicktag on default to post types/ID post, page and comment. If you will also the plugin for other post types you can use a filter hook, also for custom buttons and custom pages, there have a editor. See the examples and hint inside the tab "Other Notes".

Bugs, technical hints or contribute

Please give me feedback, contribute and file technical bugs on GitHub Repo.

Made by Inpsyde · We love WordPress

Have a look at the premium plugins in our market.

Author Frank Bültge
Profile
Contributors Bueltge
Tags add buttons, button, buttons, editor, quicktag, TinyMCE, visual editor
  1. addquicktag screenshot 1

    Settings area in WordPress 3.3

  2. addquicktag screenshot 2

    Settings area in WordPress Network of an Multisite install 3.3

  3. addquicktag screenshot 3

    HTML Editor with new Quicktags

  4. addquicktag screenshot 4

    Visual editor with new Quicktags

Requirements

  • WordPress version 3.0 and later (tested at 3.6-alpha (nightly build))

Installation

  1. Unpack the download-package
  2. Upload the files to the /wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress or for the Network, if you will use in Multisite for all Sites
  4. Got to 'Settings' menu and configure the plugin

Version before WordPress smaller 3.0

If you will use this plugin with an older version of WordPress, please use an older version of this plugin, smaller version 2.0.0 - you find it in the repo. But i will not support this version. The version 2.0.0 and higher was rewrite with all new posibilties of the WordPress Core.

2.2.2 (02/09/2013)

  • Add Filter Hook for custom button, see issue #9
  • Small check for undefined var on settings page

2.2.1 (13/11/2012)

  • Fix for im/export
  • Add toggle checkboxes for each type

2.2.0

  • Add checkboxes for different post type, use also filter for custom post type
  • Change script on HTML editor, only include buttons, there have an active checkbox on options for his post type
  • Add more data in JSON
  • Fix for custom post types; works now also on settings page
  • Change function to add button in html editor --> QTags.addButton()
  • Update im/export function for use with custmo post type
  • Fix settings page on network for WP 3.5

2.1.0

  • Add fix, see Forum thread 'array_multisort error'
  • See Quicktag button in visual editor, onbly if an button is actove for visual
  • Change hooks for include scripts
  • Add filter for page in backend
  • Add edit comments to use quicktags

2.0.4

  • Add fix for use older settings from previous versions
  • Unicode fix for upload XML file

2.0.3

  • Add Filter 'addquicktag_post_types' for use the plugin also on custom post types
  • Update readme and add an example for this filter; also an Gist for use faster

2.0.2

  • change hook for include styles and scriptes for compatibility in WP 3.4

2.0.1

  • Bugfix on JS for WP smaller 3.3; use quickbuttons clean on html-editor with core-buttons

2.0.0

  • complete redesign, new code from the first line
  • add function for add quicktags on html and visual editor
  • works also on Multisite Network
  • new settings page
  • add fallback in JS to use this new version also in WordPress smaller 3.3

v1.6.5 (02/02/2011)

  • changes for admin-hints
  • kill php warnings on debug-mode

v1.6.4 (12/22/2010)

  • small changes for depreaced WP functions

v1.6.3 (16/06/2009)

  • Add belarussian language file, thanks to Fat Cow

Please see the older changes on version on the the official website!

Other Notes

Acknowledgements

Thanks to

Hook for custom post types

The plugin add the quicktag on default to post types/ID post, page and comment. If you will also the plugin for other post types you can use a filter; see the follow example or an example plugin in the Gist 1595155.

// add custom function to filter hook 'addquicktag_post_types'
add_filter( 'addquicktag_post_types', 'my_addquicktag_post_types' );
/**
 * Return array $post_types with custom post types
 * 
 * @param   $post_type Array
 * @return  $post_type Array
 */
function my_addquicktag_post_types( $post_types ) {

    $post_types[] = 'edit-comments';

    return $post_types;
}

Hook for custom pages

Also it is possible to filter the pages inside the backend. On default was the scripts include the pages post.php, comment.php. The follow example change this for an another page.

add_filter( 'addquicktag_pages', 'my_addquicktag_pages' );
/**
 * Return array $page with custom page strings
 * 
 * @param   $page Array
 * @return  $page Array
 */
function my_addquicktag_pages( $page ) {

    $page[] = 'edit-comments.php';

    return $page;
}

See this Gist als example for add the Quicktags to the editor of comments: Gist: 3076698. If you need the functionality, that the Quicktags of this plugin works on the Quickedit of comments as well, remove the .example-part of addquicktag_quickedit_comment.php.example filename. The file is a stand alone helper plugin for Add Quicktag and you'll need to activate this file (plugin) separately in 'Manage Plugins'.

Hook for custom buttons

It is possible to add custom buttons to the editor, if the plugin is active. Is usefull to easier add buttons about the solution of this plugin.

See the follow example to add buttons. The params inside the array is the same as in the settings of the plugin.

if ( class_exists( 'Add_Quicktag' ) ) :
add_filter( 'addquicktag_buttons', 'my_addquicktag_buttons' );

function my_addquicktag_buttons( $buttons ) {

    $buttons[] = array(
        'text'          => 'Permalink', 
        'title'         => '',
        'start'         => '[permalink]',
        'end'           => '[/permalink]',
        'access'        => '',
        'order'         => 1,
        'visual'        => 1,
        'post'          => 0,
        'page'          => 1,
        'comment'       => 0,
        'edit-comments' => 0
    );
    $buttons[] = array(
        'text'          => 'Button', 
        'title'         => '',
        'start'         => '<span class="border blue">',
        'end'           => '</span>',
        'access'        => '',
        'order'         => 2,
        'visual'        => 1,
        'post'          => 0,
        'page'          => 1,
        'comment'       => 0,
        'edit-comments' => 0
    );

    return $buttons;
}
endif;

License

Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a small donation for the time I've spent writing and supporting this plugin. And I really don't want to know how many hours of my life this plugin has already eaten ;)

Translations

The plugin comes with various translations, please refer to the WordPress Codex for more information about activating the translation. If you want to help to translate the plugin to your language, please have a look at the .pot file which contains all defintions and may be used with a gettext editor like Poedit (Windows) or the plugin Localization for WordPress.

Share  
Download
Version 2.2.2

Requires WordPress version: 3.0 or higher

Compatible up to: 3.6-alpha

Last Updated 09 Feb 2013

Date Added: 04 May 2007

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

4.81 stars
101 ratings
130,249 downloads

Compatibility

Not Enough Data

Reports:
Works: 7
Broken: 0