The Cloudinary Media Library widget provides access to your Media Library within a CMS or any other web application, allowing your users to easily upload and manage assets as if they were using the Cloudinary site.
The Media Editor widget is a standalone widget that includes a set of common image editing actions.
Below is an example that demonstrates how to use the Cloudinary Media Library widget to choose an image and edit it with the Media Editor widget. Essentially, after selecting an image and clicking the "Insert" button, the Media Editor widget is initialized with the selected file.
If you want to try the demo below with your Cloudinary account, be sure to set your cloud name and API key at the top of index.js
.
The integration with the Upload widget is quite similar. The following code sandbox demonstrates how to use the Cloudinary upload widget in order to upload an image and edit it with the media editor widget (MEW). After uploading the file and closing the widget, the MEW is initialized with the uploaded file.
If you want to try the bellow app with your Cloudinary account, be sure to set your cloud name, and an unsigned upload preset in index.js
.
Additional information can be found here -
- Media Library widget - https://cloudinary.com/documentation/media_library_widget
- Upload widget - https://cloudinary.com/documentation/upload_widget
- Media Editor widget - https://cloudinary.com/documentation/media_editor
Comments
0 comments
Please sign in to leave a comment.