Constructor
new ve.ce.ContentEditableNode()abstract
#
A ContentEditableNode maintains its own contentEditable property
A ContentEditableNode maintains its own contentEditable property
Methods
isContentEditable() → {boolean}
#
Check if the node is currently editable
Returns:
Node is currently editable
- Type
- boolean
Check if the node is currently editable
onContentEditableSetup()
#
Handle setup events on the node
Handle setup events on the node
onContentEditableTeardown()
#
Handle teardown events on the node
Handle teardown events on the node
onSurfaceReadOnly(readOnly)
#
Handle readOnly events from the surface
Parameters:
Name | Type | Description |
---|---|---|
readOnly |
boolean | Surface is read-only |
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 |
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 |
Called when the surface read-only state changes