Expand all

CodeMirrorVisualEditor

Constructor

new CodeMirrorVisualEditor(surface, langExtension) #

Parameters:

Name Type Description
surface ve.ui.Surface
langExtension LanguageSupport | Extension
Source:

Properties

contentAttributesExtension #

defaultExtensions #

heightExtension #

surface :ve.ui.Surface #

The VisualEditor surface CodeMirror is bound to.

Type:

Source:
The VisualEditor surface CodeMirror is bound to.

surfaceView :ve.ce.Surface #

The ContentEditable surface.

Type:

Source:
The ContentEditable surface.

Methods

activate() #

addEditRecoveredHandler() #

addFormSubmitHandler() #

addTextAreaJQueryHook() #

deactivate() #

logEditFeature() #

Log usage of CodeMirror to the VisualEditorFeatureUse schema.

setupFeatureLogging() #