quill-media-resize

1.1.2 • Public • Published

Quill Media Resize Module

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

This module is very inspired by Ken Snyder's quill-image-resize-module. Only for images for now but aiming to handle videos and other media later.

The changelog is available on the releases page.

How to use

Vanilla

<script src="/node_modules/quill-image-resize/dist/image-resize.min.js"></script>
new Quill("#editor", {
  modules: {
    mediaResize: true,
  },
});

With ngx-quill

import { MediaResize } from 'quill-media-resize';

// ...

@NgModule({
  imports: [
    ...,

    QuillModule.forRoot({
      customModules: [
        {
          implementation: MediaResize,
          path: 'modules/MediaResize'
        }
      ],
      modules: {
        MediaResize: true
      },
    })
  ],
  ...
})
class YourModule { ... }

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i quill-media-resize

    Weekly Downloads

    14

    Version

    1.1.2

    License

    none

    Unpacked Size

    12.2 kB

    Total Files

    10

    Last publish

    Collaborators

    • arnauddrain