Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kensnyder/quill-image-drop-module

A module for Quill rich text editor to allow images to be pasted and drag/dropped into the editor.
https://github.com/kensnyder/quill-image-drop-module

Last synced: about 2 months ago
JSON representation

A module for Quill rich text editor to allow images to be pasted and drag/dropped into the editor.

Awesome Lists containing this project

README

        

# Quill ImageDrop Module

A module for Quill rich text editor to allow images to be pasted and drag/dropped into the editor.

## Demo

[Plunker](https://plnkr.co/edit/ubVmPkBjqQESsefM3JrT?p=preview)

## Usage

### Webpack/ES6

```javascript
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

```html

```

```javascript
var quill = new Quill(editor, {
// ...
modules: {
// ...
imageDrop: true
}
});
```