1. quill-image-drop-module
A module for Quill rich text editor to allow images to be pasted and drag/dropped into the editor.
quill-image-drop-module
Package: quill-image-drop-module
Created by: kensnyder
Last modified: Sat, 25 Jun 2022 07:36:33 GMT
Version: 1.0.3
License: MIT
Downloads: 41,209
Repository: https://github.com/kensnyder/quill-image-drop-module

Install

npm install quill-image-drop-module
yarn add quill-image-drop-module

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

Dependencies

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin