Questo plugin non è stato testato con le ultime 3 versioni principali (major releases) di WordPress. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

AddQuicktag

Descrizione

Questo plugin rende semplice aggiungere pulsanti Quicktag all’editor visuale e testuale. È possibile esportare i pulsanti Quicktag come file JSON che può essere importato in altre installazioni del plugin.

WP-AddQuicktaf for WordPress è stato creato originariamente da Roel Meurders. Le versioni nel repositori di AddQuicktag sono versioni successive. Questa è una completa riscrittura della versione 2.0.0 con maggiori funzionalità.

Il plugin può aggiungere pulsanti Quicktag configurabili all’editor di ogni tipo di contenuto, inclusi i tipi di contenuto personalizzati provenienti da altre fonti. Puoi decidere su quale tipo di contenuto mostrare i pulsanti Quicktag nell’editor.
Se ciò non dovesse funzionare correttamente nel tuo caso, puoi anche usare gli hook del plugin. Guarda gli esempi e i suggerimenti qui sotto.

Bug, suggerimenti tecnici o contributi

Puoi darmi un feedback, puoi contribuire e aprire segnalazioni tecniche nel repository su GitHub. Nel Wiki lì pubblicato trovi anche molti suggerimenti per il plugin.

Realizzato da Inpsyde · Engineering the web since 2006.

Hook per tipi di contenuto personalizzato

Il plugin aggiunge in modo predefinito i pulsanti Quicktag ai tipi di contenuto/ID post, page e comment. Per usare il plugin anche per altri tipi di contenuto puoi usare un filtro; guarda il seguente esempio o un plugin di esempio nel 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 per pagine personalizzate

È anche possibile filtrare le pagine all’interno del backend. Gli script includono in modo predefinito le pagine post.php e comment.php. Il seguente esempio aggiunge anche le pagine.

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;
}

Guarda questo esempio tratto da Gist per capire come aggiungere i pulsanti Quicktag all’editor dei commenti: Gist: 3076698.
Se desideri che i pulsanti Quicktag di questo plugin funzionino anche nel Quickedit dei commenti, rimuovi la parola .example dal nome del file addquicktag_quickedit_comment.php.example. Questo file è un plugin aggiuntivo a sé stante per AddQuicktag. Dovrai attivare questo file (plugin) a parte in “Plugin installati”.

Hook per pulsanti personalizzati

È possibile aggiungere pulsanti personalizzati all’editor, se il plugin è attivo.

L’esempio che segue aggiunge dei pulsanti. I parametri dentro l’array sono gli stessi delle impostazioni del 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;

Licenza

Buone notizie! Questo plugin è gratuito per tutti! Poiché viene rilasciato sotto licenza GPL, puoi usarlo senza alcun costo sul tuo blog personale o commerciale. Ma se il plugin ti soddisfa, puoi ringraziarmi e lasciare una recensione positiva per il tempo che ho speso per scrivere e mantenere questo plugin. E non voglio sapere quante ore della mia vita ha richiesto lo sviluppo di questo plugin. 😉

Screenshot

  • Area delle impostazioni in WordPress 4.0-alpha
  • Editor testuale con i nuovi pulsanti Quicktag
  • Editor visuale con i nuovi pulsanti Quicktag

Installazione

Requisiti

  • WordPress versione 4.0 e successive (vedi Compatibile fino a)

Installazione

  1. Decomprimi il pacchetto scaricato
  2. Carica i file nella directory /wp-content/plugins/
  3. Attiva il plugin dal menu Plugin di WordPress o per il Network, se lo userai in Multisite per tutti i siti
  4. Vai nel menu Impostazioni e configura il plugin

Recensioni

8 Giugno 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 Marzo 2021
Meanwhile in 2021 the plugin could get a new interface ... it is hard and confusing to edit there anything.
Leggi tutte le recensioni di 45

Contributi e sviluppo

“AddQuicktag” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

“AddQuicktag” è stato tradotto in 12 lingue. Grazie ai traduttori per i loro contributi.

Traduci “AddQuicktag” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)

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)

  • Fixed PHP7.1 problem to save new buttons.
  • Add title attribute to view on hover to each button in the TinyMCE listbox.
  • Add possibilty to use Dashicon “icons” for TinyMCE buttons.
  • Button Label is not more required, only the start-tag

2.4.3 (2015-08-21)

  • Add czech translation, thanks to 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)

  • Add traditional Chinese (zh_TW) language files
  • 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
  • Update readme
  • 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
  • Rewrite the Im-Export function (now works simple with json)
  • Rewrite the german language file

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
  • Add brazilian translation
  • Add turkish translation
  • Add possibility to remove default quicktags
  • Changes on settings style, check in MP6 design, WP 3.8
  • Add ukrainian translation
  • 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)

  • 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 custom 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, only if an button is active 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 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
  • 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 deprecated WP functions

v1.6.3 (16/06/2009)

  • Add belorussian language file, thanks to Fat Cow

Scopri i cambiamenti precedenti sul sito ufficiale!