Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

삽입할 이미지, 비디오 URLURL of the image or video to insert

typeString

파일 타입 Defining type of inserting image or video: 'Image', 'Video'


Example:

Code Block
languagejs
themeEmacs
editor.execCommand('insertDrawingObjectByURL', 'https://image.url/image', 'Image');

...