| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
ve.ui.MWSignatureContextItem = function VeUiMWSignatureContextItem() { |
| 19 |
|
| 20 |
ve.ui.MWSignatureContextItem.super.apply( this, arguments ); |
| 21 |
|
| 22 |
|
| 23 |
this.$element.addClass( 've-ui-mwSignatureContextItem' ); |
| 24 |
this.$actions.remove(); |
| 25 |
}; |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
OO.inheritClass( ve.ui.MWSignatureContextItem, ve.ui.LinearContextItem ); |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
ve.ui.MWSignatureContextItem.static.editable = false; |
| 34 |
|
| 35 |
ve.ui.MWSignatureContextItem.static.name = 'mwSignature'; |
| 36 |
|
| 37 |
ve.ui.MWSignatureContextItem.static.icon = 'signature'; |
| 38 |
|
| 39 |
ve.ui.MWSignatureContextItem.static.label = |
| 40 |
OO.ui.deferMsg( 'visualeditor-mwsignature-tool' ); |
| 41 |
|
| 42 |
ve.ui.MWSignatureContextItem.static.modelClasses = [ ve.dm.MWSignatureNode ]; |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
ve.ui.MWSignatureContextItem.prototype.getDescription = function () { |
| 50 |
return ''; |
| 51 |
}; |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
ve.ui.contextItemFactory.register( ve.ui.MWSignatureContextItem ); |