User:-chanakyakdas/common.js

var customizeToolbar = function { $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {	section: 'main',	groups: {		list: {			tools: {				templates: {					label: 'Templates',					type: 'select',					list: {						'Ping-button': {							label: ,							action: {								type: 'encapsulate',								options: {									pre: 								}							}						},						'Clear-button': {							label: 'Clear',							action: {								type: 'encapsulate',								options: {									pre: '

'								}							}						},						'Done-button': { label: 'Done', action: { type: 'encapsulate', options: { pre: '✅' }							}						}					}				}			}		}	} } ); };

if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) { mw.loader.using( 'user.options' ).then( function {		// This can be the string "0" if the user disabled the preference (T54542)		if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {			$.when( mw.loader.using( 'ext.wikiEditor' ), $.ready ).then( customizeToolbar );		}	} ); }