Package Exports
- quill-media-resize
- quill-media-resize/dist/quill-media-resize.min.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (quill-media-resize) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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. 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 { ... }