Extends
Constructor
new ve.ui.CodeMirrorTool(toolGroup, [config])abstract
#
VisualEditor UserInterface CodeMirror tool.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
toolGroup |
OO.ui.ToolGroup | ||
config |
Object |
optional |
Configuration options |
- Source:
VisualEditor UserInterface CodeMirror tool.
Properties
maxDocSize :numberstatic
#
The maximum document size that CodeMirror will handle. VisualEditor uses an infinite viewport which causes massive performance problems in CodeMirror on very large pages, and can even crash the browser. Until the integration is reworked, or VE uses a finite viewport, we put a hard limit on the document size that CodeMirror will attempt to load.
Type:
- number
- Source:
The maximum document size that CodeMirror will handle.
Methods
onSelect()
#
- Source:
onSurfaceChange()
#
- Source: