@aamuapp/quill-resize-module
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

QUILL-RESIZE-MODULE

A module for Quill rich text editor to allow images to be resized.

Usage

Webpack/ES6

npm install @galaxis/quill-resize-module

import Quill from "quill";
import ResizeModule from "@galaxis/quill-resize-module";

Quill.register("modules/resize", ResizeModule);

const quill = new Quill(editor, {
  modules: {
    resize: {
      locale: {
        //By default:
        // floatLeft: "Left",
        // floatRight: "Right",
        // center: "Center",
        // restore: "Default",
        // altTip: "Press and hold alt to lock ratio!",
        // inputTip: "Press enter key to apply change!",
      },
    },
  },
});

Package Sidebar

Install

npm i @aamuapp/quill-resize-module

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

8.33 MB

Total Files

18

Last publish

Collaborators

  • ile