MediaWiki:Common.js/edit.js: Difference between revisions

no edit summary
(testing a version of the original, full "extra buttons" script from Wikipedia)
No edit summary
Line 52: Line 52:
'J1':['Button_small.png','Small','<small>','<\/small>','Small Text'],
'J1':['Button_small.png','Small','<small>','<\/small>','Small Text'],
'J2':['Button_big.png','Big text','<big>','<\/big>','Big text'],
'J2':['Button_big.png','Big text','<big>','<\/big>','Big text'],
'L':['Button_shifting.png','Insert tab(s)',':','',':'],
'M':['Button_blockquote.png','Insert block of quoted text','<blockquote style="border: 1px solid blue; padding: 2em;">\n','\n<\/blockquote>','Block quote'],
'M':['Button_blockquote.png','Insert block of quoted text','<blockquote style="border: 1px solid blue; padding: 2em;">\n','\n<\/blockquote>','Block quote'],
'N':['Button_nbsp.png','nonbreaking space','&nbsp;','',''],
'N':['Button_nbsp.png','nonbreaking space','&nbsp;','',''],
'O':['Button_code.png','Insert code','<code>','<\/code>','Code'],
'P':['Button_pre.png','Pre formatted Text','<pre>','<\/pre>','Pre formatted text'],
'P':['Button_pre.png','Pre formatted Text','<pre>','<\/pre>','Pre formatted text'],
'P1':['Button_sub_link.png','Insert link to sub-page','[[','/Sub_Page]]','Page'],
'P1':['Button_sub_link.png','Insert link to sub-page','[[','/Sub_Page]]','Page'],
Line 88: Line 86:


if (typeof XEBOrder!='string') // can be modified
if (typeof XEBOrder!='string') // can be modified
XEBOrder2="A,D,C,D1,F,U,J1,E,G,L,H,O".split(",");
XEBOrder2="A,D,C,D1,F,U,J1,E,G,H".split(",");
else if (XEBOrder.toLowerCase()=='all')  
else if (XEBOrder.toLowerCase()=='all')  
for (b in BDict) XEBOrder2.push(b);
for (b in BDict) XEBOrder2.push(b);