Expand all

ve.ui.CodeMirrorPreferencesTool

Extends

Constructor

new ve.ui.CodeMirrorPreferencesTool(toolbar, [config]) #

Page menu shortcut to ve.ui.CodeMirrorPreferencesPage, beside the CodeMirror toggle. Like the other items in that menu, it opens the options dialog on a particular page.

Parameters:

Name Type Attributes Description
toolbar OO.ui.Toolbar
config Object optional

Configuration options

Source:
Page menu shortcut to ve.ui.CodeMirrorPreferencesPage, beside the CodeMirror toggle.

Methods

onSurfaceChange(oldSurface, newSurface) #

The toolbar keeps its tools across a mode switch, so visibility has to be updated here rather than left to which tools were built.

Parameters:

Name Type Description
oldSurface ve.ui.Surface
newSurface ve.ui.Surface
Source:

The toolbar keeps its tools across a mode switch, so visibility has to be updated here rather than left to which tools were built.