quill-plugin-image-upload
A plugin for uploading image in Quill 🌇
- 🌟 upload a image when it is inserted, and then replace the base64-url with a http-url
- 🌟 preview the image which is uploading with a loading animation
- 🌟 when the image is uploading, we can keep editing the content including changing the image's position or even delete the image.
Install
npm install quill-plugin-image-upload --save
Start
;;; // register quill-plugin-image-uploadQuill; '#editor' theme: 'snow' modules: toolbar: 'image' imageUpload: { // return a Promise that resolves in a link to the uploaded image return { ; }; } ;
Demo
cd demonpm installnpm start