Plugin capabilities extended for links and media
With the latest v0.1.0 release of the Plugin SDK we've added a couple methods:
selectItem(itemTypeId, { multiple })
- Plugins can use this method to show a modal dialog to select one or multiple existing recordsselectUpload({ multiple: boolean })
- Plugins can use this method to show a modal dialog to select one or multiple uploadseditUpload(uploadId)
- Plugins can use this method to show the modal dialog to edit an uploadeditUploadMetadata(uploadMetadata)
- Plugins can use this method to show the modal dialog to edit an upload metadata.
These new methods will allow the creation of plugins for the link fields. You can read all the details in the SDK reference.
Then, related to the media fields, we've released v3.2.0 of our JS client which:
adds support for aborting
createUploadPath
,uploadFile
anduploadImage
throughuploadPromise.cancel
adds additional option arguments to
createUploadPath
,uploadFile
anduploadImage
adds
options.onProgress
for tracking the upload progress ofcreateUploadPath
,uploadFile
anduploadImage
adds
options.filename
for renaming files uploaded withcreateUploadPath
,uploadFile
anduploadImage
These new methods will let you create plugins for the media fields and manage the uploads from your end.
You can see the client docs for more details and examples.