User:Mono/common.js
← Older revision
Revision as of 16:08, 16 March 2013
Line 1:
Line 1:
−
//
+
//
// [[File:Krinkle_RTRC.js]]
// [[File:Krinkle_RTRC.js]]
Line 6:
Line 6:
−
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
+
mw.loader.using('user.options',
+
function()
+
{
+
if (mw.user.options.get('usebetatoolbar'))
+
{
+
mw.loader.using('ext.wikiEditor.toolbar',
+
function()
+
{
+
$(document).ready(
+
function()
+
{
+
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'section': 'advanced',
'group': 'insert',
'group': 'insert',
Line 17:
Line 17:
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
−
pre: "{{Section resolved|~~~~}}" // text to be inserted
+
pre: ":)" // text to be inserted
}
}
}
}
Line 23:
Line 23:
}
}
} );
} );
+
}
+
);
+
}
+
);
+
}
+
}
+
);
+
//
//
http://commons.wikimedia.org/w/index.php?title=User:Mono/common.js&diff=92688037&oldid=92687938