...
Insert image or video at the caret position.
When there is a selection, the selected block is deleted and image or video is inserted.
Parameters:
Name | Type | Description |
---|---|---|
actionName | String액션 이름 | 'insertDrawingObjectURL' image and video URL inserting API |
url | String | 삽입할 이미지, 비디오 URLURL of the image or video to insert |
type | String | 파일 타입 Defining type of inserting image or video: 'Image', 'Video' |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
editor.execCommand('insertDrawingObjectByURL', 'https://image.url/image', 'Image'); |
...