MediaWiki:Gadget-prota.js

/* Addes font selector buttons to edit view */ jQuery( function ( $ ) {	"use strict";	function protaAddButton ( label, style ) {		var $edit = $( '#wpTextbox1' );		var $button = $( ' ' )			.val( label )			.click( function { $edit.css( {fontFamily: style } ); } );		$edit.parent.prepend( $button );	}

protaAddButton(' Serif', 'serif' ); protaAddButton(' Sans', 'sans-serif' ); protaAddButton(' Monospaced', 'monospace' ); protaAddButton(' Nastaleeq', 'Jameel Noori Nastaleeq' );

} );