Page tree
Skip to end of metadata
Go to start of metadata

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:

NameTypeDescription
actionNameString'insertDrawingObjectURL' image and video URL inserting API
urlString

URL of the image or video to insert

typeString

Defining type of inserting image or video: 'Image', 'Video'


Example:

editor.execCommand('insertDrawingObjectByURL', 'https://image.url/image', 'Image');
  • No labels