| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
ve.ui.MWSyntaxHighlightInspectorTool = function VeUiMWSyntaxHighlightInspectorTool() { |
| 18 |
ve.ui.MWSyntaxHighlightInspectorTool.super.apply( this, arguments ); |
| 19 |
}; |
| 20 |
OO.inheritClass( ve.ui.MWSyntaxHighlightInspectorTool, ve.ui.FragmentInspectorTool ); |
| 21 |
ve.ui.MWSyntaxHighlightInspectorTool.static.name = 'syntaxhighlightInspector'; |
| 22 |
ve.ui.MWSyntaxHighlightInspectorTool.static.group = 'object'; |
| 23 |
ve.ui.MWSyntaxHighlightInspectorTool.static.icon = 'markup'; |
| 24 |
ve.ui.MWSyntaxHighlightInspectorTool.static.title = OO.ui.deferMsg( |
| 25 |
'syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-title' ); |
| 26 |
ve.ui.MWSyntaxHighlightInspectorTool.static.modelClasses = [ ve.dm.MWInlineSyntaxHighlightNode ]; |
| 27 |
ve.ui.MWSyntaxHighlightInspectorTool.static.commandName = 'syntaxhighlightInspector'; |
| 28 |
ve.ui.MWSyntaxHighlightInspectorTool.static.autoAddToCatchall = false; |
| 29 |
ve.ui.toolFactory.register( ve.ui.MWSyntaxHighlightInspectorTool ); |
| 30 |
|
| 31 |
ve.ui.commandRegistry.register( |
| 32 |
new ve.ui.Command( |
| 33 |
'syntaxhighlightInspector', 'window', 'open', |
| 34 |
{ args: [ 'syntaxhighlightInspector' ], supportedSelections: [ 'linear' ] } |
| 35 |
) |
| 36 |
); |