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:
editor.execCommand('insertFile', [file]);