An open API service indexing awesome lists of open source software.

https://github.com/arnauddrain/quill-media-resize

Quill media resize plugin
https://github.com/arnauddrain/quill-media-resize

ngx-quill quill quill-editor quilljs resize

Last synced: 25 days ago
JSON representation

Quill media resize plugin

Awesome Lists containing this project

README

          

# 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](https://github.com/kensnyder/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](https://github.com/arnauddrain/quill-media-resize/releases).

## How to use

### Vanilla

```html

```

```js
new Quill("#editor", {
modules: {
mediaResize: true,
},
});
```

### With [ngx-quill](https://github.com/KillerCodeMonkey/ngx-quill)

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

// ...

@NgModule({
imports: [
...,

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