Represents the HTML editor component.
- Source:
Example
<HtmlEditor />
Methods
(function) handler()
Method handler
- Source:
(function) handler()
Method handler
- Source:
(function) data()
Method data
- Source:
(method) findImageNode(node) → {Node}
Finds an image node in the DOM tree.
Parameters:
Name | Type | Description |
---|---|---|
node |
Node | The node to be searched. |
- Source:
Returns:
The image node, if found, null otherwise.
- Type
- Node
(method) getSelectedImageAttributes() → {Object}
Gets the attributes of the selected image.
- Source:
Returns:
The attributes of the selected image.
- Type
- Object
(method) insertIcon(value)
Inserts an icon into the editor, at cursor position.
Parameters:
Name | Type | Description |
---|---|---|
value |
any | The value of the icon to be inserted. |
- Source:
(method) insertImage()
Inserts an image into the editor, at cursor position.
- Source:
(method) insertVar(value)
Inserts a variable into the editor, at cursor position.
Parameters:
Name | Type | Description |
---|---|---|
value |
any | The value of the variable to be inserted. |
- Source:
(method) showImagePicker()
Shows the image picker dialog.
- Source:
(function) mounted()
Initializes the component.
- Source:
(watcher) htmlValue()
Method htmlValue
- Source:
(watcher) modelValue()
Method modelValue
- Source: