Dieses Plugin ist nicht mit den jüngsten 3 Hauptversionen von WordPress getestet worden. Es wird möglicherweise nicht mehr gewartet oder unterstützt und kann Kompatibilitätsprobleme haben, wenn es mit neueren Versionen von WordPress verwendet wird.

AddQuicktag

Beschreibung

Dieses Plugin macht es einfach, Quicktags zum text- und visuellen Editor hinzuzufügen. Der Export als JSON-File aller Quicktags ist möglich, so dass die Einstellungen in anderen Installationen genutzt werden können.

WP-AddQuicktag für WordPress war im Original und Idee von Roel Meurders. Diese Version ist komplett neu geschrieben und besitzt neue und zusätzliche Funktionen.

The plugin can add configurable custom quicktags to the editor of every post type, including custom post types from other sources. You may choose a post type for which a quicktag shall show up in the editor.
If this should not work perfectly well for you, you may also use the hooks inside the plugin. See the examples and hint inside the tab „Other Notes„.

Fehler, technische Hinweise oder Mitarbeit

Please give me feedback, contribute and file technical bugs on GitHub Repo. The Wiki on this page has also several hints for the plugin.

Handgemacht von Inpsyde · Entwicklungen im Web seit 2006.

Hook für benutzerdefinierten Inhaltstyp

Dieses Plugin fügt standardmäßig einen Quicktag für Inhaltstypen/ID Beiträge, Seiten und Kommentaren zu. Um dieses Plugin für andere Inhaltstypen zu nutzen, kann ein Filter benutzt werden; schaue folgendes Beispiel oder ein Beispiel-Plugin unter Gist 1595155 an.

// 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 für benutzerdefinierte Seite

It is possible also to filter the pages inside the backend. By default the scripts include the pages post.php, comment.php. The following example changes 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 as an example for how to add the Quicktags to the editor of comments: Gist: 3076698.
If you want the Quicktags of this plugin to work 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. You’ll need to activate this file (plugin) separately in ‚Manage Plugins‘.

Hook für benutzerdefinierte Button

Wenn das Plugin aktiv ist, ist es möglich, ein benutzerdefinierten Button zum Editor hinzuzufügen.

Das folgende Beispiel fügt Buttons hinzu. Die Parameter innerhalb des Array sind die gleichen wie bei den Einstellungen vom 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;

Lizenz

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 may consider to thank me and leave a positive review 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 😉

Screenshots

  • Einstellungsbereich in WordPress Version 4.0-alpha
  • Text (html) Editor mit neuen Quicktags
  • Visueller Editor mit neuen Quicktags

Installation

Anforderungen

  • WordPress Version 4.0 und neuer (schaue auch Kompatibel bis zu)

Installation

  1. Entpacke das Downloadpaket
  2. Aktualisiert die Dateien im /wp-content/plugins/-Verzeichnis.
  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

Rezensionen

8. Juni 2021
WordPress4.9.18 AddQuicktag 2.6.1 Japanese ------------- This plugin is very useful! (star*5 ★★★★★)   However, after updating, I can no longer save the label name of the button. I typed it in English instead of Japanese and it was solved! But it's time to finish using it... I am not good at English. sorry.
12. März 2021
Meanwhile in 2021 the plugin could get a new interface ... it is hard and confusing to edit there anything.
Alle 45 Rezensionen lesen

Mitwirkende & Entwickler

„AddQuicktag“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

„AddQuicktag“ wurde in 12 Sprachen übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.

Übersetze „AddQuicktag“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

2.6.1 (2021-05-20)

  • Fix storage and update of post type checkboxes in the settings pages.

2.6.0 (2021-04-29)

  • Maintenance for the jQuery Update to run with the last WP Core update, jQuery 3.5*
  • Maintenance several code styles, testing PHP7/8
  • Remove dependecies for WP version smaller 3.3

2.5.3 (2018-11-06)

  • Fix error warning in edit mode without button settings.

2.5.2 (2017-11-16)

  • Fixed several code strict style issues.
  • Fixed javascript topics to write more strict.

2.5.1 (2017-03-09)

  • Fixed Multisite error for check, is the plugin active in the MU Environment.

2.5.0 (2017-02-21)

  • Das speichern neuer Buttons unter PHP7.1 wurde gelöst.
  • Das Hinzufügen von Title Attributen beim Anzeigen bei Mauszeigerkontakt ist für jeden Button im TinyMCE Listenfeld möglich.
  • Das Hinzufügen von Dashicons „Icons“ für TinyMCE Buttons ist nun möglich.
  • Button-Bezeichnung ist nicht mehr erforderlich, nur der Start-Tag.

2.4.3 (2015-08-21)

  • Tschechische Übersetzung hinzugefügt. Danke https://github.com/MikkCZ
  • Bugfix: TinyMCE input select was changed in his object, changes on the script for the visual editor to set quicktags.

2.4.2 (2015-02-24)

  • Remove remove_accents() for save title and attribute on buttons to allow all characters.

2.4.1 (2015-01-19)

  • Bugfix for save label of each button; change sanitizing

2.4.0 (12/18/2014)

  • Traditionelle Chinesische (zh_TW) Übersetzung hinzugefügt
  • Fix filter topic to use tags with attributes issue #30
  • Update grammar topics Issue #29

2.3.3 (06/26/2014)

  • Fix PHP notice on different installs
  • Update french, turkish and german language files
  • Update description, hint on the settings page
  • Order setting works now also on the visual drop down menu
  • Aktualisierung der Liesmich-Datei
  • Update screenshots for the new version, possibilities

2.3.2 (06/20/2014)

  • Bugfix Javascript to add quicktags

2.3.1 (06/19/2014)

  • Fix JavaScript error on code_buttons

2.3.0 (06/19/2014)

  • Allow quicktags on edit-comment and quick-edit screen on default
  • Add possibility to remove core quicktags from each post type
  • Add possibility to add enhanced code buttons to mask code and format
  • Überarbeitung der Im-Export-Funktion (funtioniert nun einfach mit JSON)
  • Überarbeitung der deutschen Sprachdatei

2.3.0-RC1 (05/22/2014)

  • Use on default all post types with active UI, incl. Custom and Default Post types
  • New settings UI to easier add quicktags to each post type
  • Add Widget area, now it is possible to use quicktags on widgets with WP editor
  • Brasilianische Übersetzung hinzugefügt
  • Türkische Übersetzung hinzugefügt
  • Das Entfernen von Standard-Quicktags wurde hinzugefügt
  • Changes on settings style, check in MP6 design, WP 3.8
  • Ukrainische Übersetzung hinzugefügt
  • Add solution to remove core quicktag, Beta Status
  • Fix TinyMCE Select Box in WordPress 3.9*

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)

  • Import/Export gelöst
  • 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
  • Mehr Daten im JSON hinzugefügt
  • Fix for custom post types; works now also on settings page
  • Änderung der Funktion, um einen Button in HTML Editor hinzuzufügen –> QTags.addButton()
  • Aktualisierung für Import-/Export-Funktion für benutzerdefinierten Inhaltstyp
  • 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, only if an button is active for visual
  • Change hooks for include scripts
  • Filter für Seiten im Hintergrund hinzugefügt
  • 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 including styles and scripts 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
  • funktioniert ebenso unter Multisite-Netzwerken
  • neue Einstellungsseite
  • add fallback in JS to use this new version also in WordPress smaller 3.3

v1.6.5 (02/02/2011)

  • Änderungen für Admin-Hinweise
  • unterdrückt im Debug-Modus die PHP-Warnmeldungen

v1.6.4 (12/22/2010)

  • kleinere Änderungen für veraltete WP-Funktionen

v1.6.3 (16/06/2009)

  • Weißrussische Sprachdatei wurde hinzugefügt. Danke Fat Cow.

Ältere Änderungen sind auf der offiziellen Website zu finden!