Extends
Constructor
new mw.libs.ve.MWEditModeTool(toolGroup, [config])abstract
#
Hierarchy
Children
MediaWiki edit mode tool.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
toolGroup |
OO.ui.ToolGroup | ||
config |
Object |
optional |
Config options |
MediaWiki edit mode tool.
Methods
getMode() → {string}
#
Get current edit mode
Returns:
Current edit mode
- Type
- string
Get current edit mode
isModeAvailable(Edit) → {boolean}
#
Check if edit mode is available
Parameters:
Name | Type | Description |
---|---|---|
Edit |
string | mode |
Returns:
Edit mode is available
- Type
- boolean
Check if edit mode is available
onSelect()
#
onUpdateState()
#
switch()
#
Switch editors
Switch editors