캐럿이 위치한곳에 파일을 링크로 삽입합니다.
삽입한 파일은 서버로 업로드 됩니다.
...
Insert file at the caret position in the form of hyperlink.
Inserted files are uploaded to the server.
Related setting : Setting Import API and Upload API
Parameters:
Name | Type | Description |
---|---|---|
actionName | String액션 이름 | 'insertFile' file inserting API |
files | File[] | 업로드할 파일[file, file ...]: Array including file object |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
editor.execCommand('insertFile', [file]); |
...