Difference between revisions of "MediaWiki:Vector.js"
From Korean Wiki Project
DigitalSoju (Talk | contribs) (testing) |
DigitalSoju (Talk | contribs) |
||
Line 17: | Line 17: | ||
label: 'Underline text', | label: 'Underline text', | ||
type: 'button', | type: 'button', | ||
− | icon: 'http:// | + | icon: 'http://koreanwikiproject.com/wiki/images/Underline_button.png', |
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
Line 35: | Line 35: | ||
label: 'Skyblue font', | label: 'Skyblue font', | ||
type: 'button', | type: 'button', | ||
− | icon: 'http:// | + | icon: 'http://koreanwikiproject.com/wiki/images/Skyblue_font_button.png', |
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
Line 48: | Line 48: | ||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
'section': 'advanced', | 'section': 'advanced', | ||
− | 'group': ' | + | 'group': 'format', |
'tools': { | 'tools': { | ||
'Section': { | 'Section': { | ||
label: 'Pink font', | label: 'Pink font', | ||
type: 'button', | type: 'button', | ||
− | icon: 'http:// | + | icon: 'http://koreanwikiproject.com/wiki/images/Pink_font_button.png', |
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
Line 71: | Line 71: | ||
label: 'Pt', | label: 'Pt', | ||
type: 'button', | type: 'button', | ||
− | icon: 'http:// | + | icon: 'http://koreanwikiproject.com/wiki/images/', |
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', |
Revision as of 16:16, 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://koreanwikiproject.com/wiki/images/Underline_button.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://koreanwikiproject.com/wiki/images/Skyblue_font_button.png', action: { type: 'encapsulate', options: { pre: "<font color=DeepSkyBlue>", post: "</font>" } } } } } ); $j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'advanced', 'group': 'format', 'tools': { 'Section': { label: 'Pink font', type: 'button', icon: 'http://koreanwikiproject.com/wiki/images/Pink_font_button.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://koreanwikiproject.com/wiki/images/', action: { type: 'encapsulate', options: { pre: "{{pt||", post: "}}" } } } } } ); } ); }