Content deleted Content added
Polygnotus (talk | contribs) No edit summary |
Polygnotus (talk | contribs) use OOUI |
||
Line 60:
element: function ( context ) {
var button = new OO.ui.ButtonInputWidget( {
label: '
icon: 'articles'
} );
Line 79:
exlinkInBody: {
filters: [ 'body.ns-3' ],
width: 26,▼
var text = '{{subst:' + 'User:Polygnotus/Templates/exlink}} ~~' + '~~';
type: 'encapsulate',▼
context.$textarea.textSelection('encapsulateSelection', {
options: {▼
});
return button.$element;
}
},
uwSpam: {
filters: [ 'body.ns-3' ],
var button = new OO.ui.ButtonInputWidget( {
▲ icon: '//upload.wikimedia.org/wikipedia/commons/c/c8/No-spam.svg',
icon: '//upload.wikimedia.org/wikipedia/commons/c/c8/No-spam.svg'
type: 'encapsulate',▼
button.connect( null,
var text = '{{subst:' + 'uw-spam}} ~~' + '~~';
context.$textarea.textSelection('encapsulateSelection', {
pre: text
} );
return button.$element;
}
},
|