Diferencia entre revisiones de «MediaWiki:Common.js»
| Línea 4: | Línea 4: | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {  | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {  | ||
| − | 	'  | + | 	'sections': {  | 
| − | + | 		'emoticons': {  | |
| − | + | 			'type': 'toolbar', // Can also be 'booklet'  | |
| − | + | 			'label': 'Emoticons'  | |
| − | + | 			// or 'labelMsg': 'section-emoticons-label' for a localized label  | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
		}  | 		}  | ||
	}  | 	}  | ||
Revisión del 21:02 17 jun 2021
/* Cualquier código JavaScript escrito aquí se cargará para todos los usuarios en cada carga de página */
var customizeToolbar = function () {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	'sections': {
		'emoticons': {
			'type': 'toolbar', // Can also be 'booklet'
			'label': 'Emoticons'
			// or 'labelMsg': 'section-emoticons-label' for a localized label
		}
	}
} );
};