User:-chanakyakdas/common.js

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

',							action: { type: 'encapsulate', options: { pre: '

'								}							}						},						'Done-button': { label: '✅', 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 );		}	} ); }