Dieses Plugin macht es einfach, Quicktags zum text- und visuellen Editor hinzuzufügen.
Bewertungen
4.7
Zuletzt aktualisiert
May 20, 2021
Version
2.6.1
Aktive Installationen
100K
AddQuicktag

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 😉

Kostenlosmit dem Creator-Tarif
Mit deiner Installation stimmst du den Geschäftsbedingungen von WordPress.com sowie den Bedingungen für Drittanbieter-Plugins zu.
Aktive Installationen
100K
Getestet bis
5.7.12
Dieses Plugin steht zum Download zur Verfügung, um in deiner selbst gehosteten WordPress-Installation verwendet zu werden.