Difference between revisions of "MediaWiki:Vector.js"
From Korean Wiki Project
DigitalSoju (Talk | contribs) |
DigitalSoju (Talk | contribs) (testing) |
||
Line 48: | Line 48: | ||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
'section': 'advanced', | 'section': 'advanced', | ||
โ | 'group': ' | + | 'group': 'insert', |
'tools': { | 'tools': { | ||
'Section': { | 'Section': { |
Revision as of 15:33, 24 November 2010
/* Any JavaScript here will be loaded for users using the Vector skin */ // <pre> //SAL //inc("Utente:IPork/SAL.js"); // PULSANTI ADDIZIONALI per skin Vector :-) // AutoreCitato: confronta codice sotto con vecchia versione per monobook. La funzione รจ autonoma, // non richiede il caricamento di altri script! if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { $j(document).ready( function() { $j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'advanced', 'group': 'format', 'tools': { 'Ac': { label: 'Underline text', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_AC.png', action: { type: 'encapsulate', options: { pre: "<u>", post: "</u>" } } } } } ); $j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'advanced', 'group': 'format', 'tools': { 'Center': { label: 'Skyblue font', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/5/5f/Button_center.png', action: { type: 'encapsulate', options: { pre: "<font color=DeepSkyBlue>", post: "</font>" } } } } } ); $j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'advanced', 'group': 'insert', 'tools': { 'Section': { label: 'Pink font', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/4/44/Button_comillas_latinas.png', action: { type: 'encapsulate', options: { pre: "<font color=deeppink>", post: "</font>" } } } } } ); $j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'advanced', 'group': 'format', 'tools': { 'Pt': { label: 'Pt', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/4/4b/Button_class_text.png', action: { type: 'encapsulate', options: { pre: "{{pt||", post: "}}" } } } } } ); } ); }