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

https://github.com/hunghg255/quill-resize-image

A plugin resize image for Quilljs
https://github.com/hunghg255/quill-resize-image

editor image modify modify-image photos plugin quill-editor quilljs react-quill resize resize-images

Last synced: 2 months ago
JSON representation

A plugin resize image for Quilljs

Awesome Lists containing this project

README

          



logo


A library resize image for Quill editor.


NPM Version
NPM Downloads
Minizip
Contributors
License

## Demo

[Quill Resize Image](https://quill-resize-image.vercel.app/)

## Install

```bash
npm i quill-resize-image@latest
```

With `yarn`

```bash
yarn add quill-resize-image
```

## Reactjs

```tsx
import ReactQuill, { Quill } from 'react-quill';
import QuillResizeImage from 'quill-resize-image';

/**
- add object resize to modules.
**/

// resize: {
// locale: {},
// },

Quill.register("modules/resize", window.QuillResizeImage);

const App = () => {
const Editor = {
modules: {
toolbar: {
container: [
['image'],
],
},
resize: {
locale: {},
},
},
formats: [
'image',
],
};

return
}

```

## Browser

```html




Document






Hello World!


Some initial bold text







Quill.register("modules/resize", window.QuillResizeImage);

var toolbarOptions = [
"bold",
"italic",
"underline",
"strike",
"image",
"video",
];
var quill = new Quill("#editor", {
theme: "snow",
modules: {
toolbar: toolbarOptions,
resize: {
locale: {
center: "center",
},
},
},
});

```

## All Contributors

Thanks to the following friends for their contributions to project:


contributors