Constructor
new ve.ce.ImageNode($figure, [$image], [config])abstract
#
ContentEditable image node.
Properties
deleteCommandName
#
Command to execute when Delete or Backspace is pressed while this node is focused.
Properties:
Type | Description |
---|---|
string
|
null
|
- Mixes in:
- Source:
Command to execute when Delete or Backspace is pressed while this node is focused.
iconWhenInvisible
#
Icon to use when the rendering is considered not visible, as defined in #hasRendering
No icon is show if null.
Properties:
Type | Description |
---|---|
string
|
null
|
- Mixes in:
- Source:
Icon to use when the rendering is considered not visible, as defined in #hasRendering
No icon is show if null.
primaryCommandName
#
Command to execute when Enter is pressed while this node is focused, or when the node is double-clicked.
Properties:
Type | Description |
---|---|
string
|
null
|
- Mixes in:
- Source:
Command to execute when Enter is pressed while this node is focused, or when the node is double-clicked.
Methods
getRectsForElement($element, [relativeRect]) → {Object}
#
Get rects for an element
onAttributeChange(key, from, to)
#
Update the rendering of the 'align', src', 'width' and 'height' attributes when they change in the model.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | Attribute key |
from |
string | Old value |
to |
string | New value |
- Source:
Update the rendering of the 'align', src', 'width' and 'height' attributes when they change in the model.
onLoad(e)
#
Handle the image load
getDescription()static
#
- Source:
- See: