Constructor
new CodeMirrorVisualEditorOpenLinks(surface, config)
#
Parameters:
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
surface |
ve.ui.Surface | ||||||||||||||||||||||
config |
Object |
Properties:
|
Properties
drawn :Object|null
#
null
#
enabled :boolean
#
frameHandle :number|null
#
null
#
Pending requestAnimationFrame handle, coalescing resolves during pointer movement.
Type:
-
number
|
null
pointer :Object|null
#
null
#
Last pointer position seen inside the surface, as the pageX/pageY pair
ve.ce.Surface#getOffsetFromEventCoords reads. Null while the pointer is
outside, so that pressing the modifier then resolves nothing.
Type:
-
Object
|
null
Last pointer position seen inside the surface, as the pageX/pageY pair
ve.ce.Surface#getOffsetFromEventCoords reads.
surface :ve.ui.Surface|null
#
null
#
surfaceView :ve.ce.Surface
#
Methods
destroy()
#
Tear down. Called when the VE surface is destroyed.
setEnabled(enabled)
#
Enable or disable link opening.
Parameters:
| Name | Type | Description |
|---|---|---|
enabled |
boolean |