2.0.0 • Published 8 months ago

@aamuapp/quill-resize-module v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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!",
      },
    },
  },
});