Benutzer: Noeth/common.js: Unterschied zwischen den Versionen
Aus Joachim Camerarius (1500-1574)
Noeth (Diskussion | Beiträge) Die Seite wurde neu angelegt: „// Check if we're editing a page. if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) { // Add a hook handler. mw.hook( 'wikiEditor.too…“ |
Noeth (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
// Check if we're editing a page. | // Check if we're editing a page. | ||
mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) { | mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) { | ||
// Configure a new toolbar entry on the given $textarea jQuery object. | // Configure a new toolbar entry on the given $textarea jQuery object. | ||
| Zeile 16: | Zeile 14: | ||
} ); | } ); | ||
} ); | } ); | ||
Version vom 17. August 2022, 12:22 Uhr
// Check if we're editing a page.
mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) {
// Configure a new toolbar entry on the given $textarea jQuery object.
$textarea.wikiEditor( 'addToToolbar', {
$textarea.wikiEditor( 'addToToolbar', {
sections: {
emoticons: {
type: 'toolbar', // Can also be 'booklet',
label: 'Emoticons'
// or labelMsg: 'section-emoticons-label' for a localized label
}
}
} );
} );
} );