Package Exports
- quill-image-drop-module
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (quill-image-drop-module) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Quill ImageDrop Module
A module for Quill rich text editor to allow images to be pasted and drag/dropped into the editor.
Demo
Usage
Webpack/ES6
import Quill from 'quill';
import { ImageDrop } from 'quill-image-drop-module';
Quill.register('modules/imageDrop', ImageDrop);
const quill = new Quill(editor, {
// ...
modules: {
// ...
imageDrop: true
}
});Script Tag
Copy image-drop.min.js into your web root or include from node_modules
<script src="/node_modules/quill-image-drop-module/image-drop.min.js"></script>var quill = new Quill(editor, {
// ...
modules: {
// ...
imageDrop: true
}
});