Expand all

abstract ve.ce.ContentEditableNode

Constructor

new ve.ce.ContentEditableNode()abstract #

A ContentEditableNode maintains its own contentEditable property

Source:
A ContentEditableNode maintains its own contentEditable property

Methods

isContentEditable() → {boolean} #

Check if the node is currently editable

Source:

Returns:

Node is currently editable

Type
boolean
Check if the node is currently editable

onContentEditableSetup() #

Handle setup events on the node

Source:
Handle setup events on the node

onContentEditableTeardown() #

Handle teardown events on the node

Source:
Handle teardown events on the node

onSurfaceReadOnly(readOnly) #

Handle readOnly events from the surface

Parameters:

Name Type Description
readOnly boolean

Surface is read-only

Source:
Handle readOnly events from the surface

setContentEditable(enabled) #

Enable or disable editing on this node

Parameters:

Name Type Description
enabled boolean

Whether to enable editing

Source:
Enable or disable editing on this node

setReadOnly(readOnly) #

Called when the surface read-only state changes

Parameters:

Name Type Description
readOnly boolean

Surface is read-only

Source:
Called when the surface read-only state changes