« MediaWiki:Common.js » : différence entre les versions

De Keyla project
Aller à : navigation, rechercher
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 7 : Ligne 7 :
'section': 'characters',
'section': 'characters',
'page': 'symbols',
'page': 'symbols',
'characters': [ '\u02be', '\u02bf' ]
'characters': [ 'z', 'z' ]
});
});



Version du 29 août 2023 à 09:37

if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) {
	// Add a hook handler.
	mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) {
		// Configure a new toolbar entry on the given $textarea jQuery object.

$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	'section': 'characters',
	'page': 'symbols',
	'characters': [ 'z', 'z' ]
});


} );
}