# quill-upload-image

> A module for Quill rich text editor to allow images to be uploaded to a server instead of being base64 encoded

Latest version **1.5.2** (published 2021-02-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install quill-upload-image
pnpm add quill-upload-image
yarn add quill-upload-image
bun add quill-upload-image
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.2 |
| Published | 2021-02-18 |
| First published | 2021-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 21.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ken Mueller |
| Maintainers | kenmueller |
| Keywords | quill, quilljs, image, upload |

## Links

- npm: https://www.npmjs.com/package/quill-upload-image
- Repository: https://github.com/kenmueller/quill-upload-image
- Homepage: https://github.com/kenmueller/quill-upload-image#readme
- Issues: https://github.com/kenmueller/quill-upload-image/issues
- npm.io page: https://npm.io/package/quill-upload-image

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.5.2 (latest) — 2021-02-18
- 1.5.1 — 2021-02-18
- 1.5.0 — 2021-02-18
- 1.4.0 — 2021-02-18
- 1.3.0 — 2021-02-15

## README

# Quill Upload Image

Upload images in Quill through a server instead of being base64 encoded. Handles drag & drop, pasting, and direct uploads.

```js
import Quill from 'quill'
import UploadImage from 'quill-upload-image'

Quill.register('modules/uploadImage', UploadImage)

const quill = new Quill(editor, {
	modules: {
		uploadImage: {
			upload: file =>
				new Promise((resolve, reject) => {
					setTimeout(() => {
						resolve('https://example.com/image.png')
					}, 3000)
				}),
			onError: error => console.error(error)
		}
	}
})
```

---
_Source: https://npm.io/package/quill-upload-image · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
