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.
<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 { ... }