yqquill-image-drop-module

0.0.6 • Public • Published

Quill ImageDrop Module

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

追加修复新版谷歌浏览器下粘贴复制图片的问题

Demo

Plunker

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
    }
});

Package Sidebar

Install

npm i yqquill-image-drop-module

Weekly Downloads

1

Version

0.0.6

License

MIT

Unpacked Size

11.9 kB

Total Files

6

Last publish

Collaborators

  • yanqian