Skip to main content
# django-quill

[![Build Status](https://img.shields.io/travis/gsmke/django-quill/master.svg?style=flat)](https://travis-ci.org/gsmke/django-quill)
[![Latest Version](https://img.shields.io/pypi/v/django-quill.svg?style=flat)](https://pypi.python.org/pypi/django-quill/)

Easily use [Quill.js](http://quilljs.com/) in your django admin.

This project is heavily inspired by [django-ckeditor](https://github.com/django-ckeditor/django-ckeditor).

Requires django 1.7.

![Admin Preview](/.screenshots/admin.png?raw=true)

## Quick start

1. Install the package from pypi

```bash
pip install django-quill
```

2. Add "quill" to your INSTALLED_APPS setting like this:

```python
INSTALLED_APPS = (
...
'quill',
)
```

## Usage

```python
from django.db import models
from quill.fields import RichTextField


class MyModel(models.Model):
content = RichTextField()
content2 = RichTextField(config='basic')
```

If you want to support image uploads, your admin needs to extend from `quill.admin.QuillAdmin`:

```python
from quill.admin import QuillAdmin

class MyAdmin(QuillAdmin):
pass
```

### Customizing

To customize this app, extend ``apps.QuillConfig`` and modify whatever you need. For example, to add a new toolbar:

```python
from quill.apps import QuillConfig


class MyQuillConfig(QuillConfig):
my_toolbar = dict(full, toolbar_template='quill/toolbars/my_toolbar.html')
```

To customize the extensions of the images that can be uploaded:

```python
from quill.apps import QuillConfig


class MyQuillConfig(QuillConfig):
allowed_image_extensions = ['jpeg', 'gif']
```

### Provided Toolbars

There are two toolbars that come with this package:

1. Full (default): Provides basic font style and size selection, bold, italics, underline, strikethrough, text color, background color, lists, links, and images.
2. Basic: Provides bold, italic, underline, lists, and links.

## Development

There are several dependencies on npm that are required before building django-quill:

```bash
$ npm install
```

### Auto Compile JS

```bash
$ make watch
```

### Running Tests

```bash
$ make test
```

### Building JS

```bash
$ make build
```


# TODO

1. Better documentation.
2. More tests.
3. Better support for using outside of the admin.

Metadata

Release files for django-quill 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-quill 0.0.4
File Size Uploaded Provenance Actions
django-quill-0.0.4.tar.gz 208.8 kB Without provenance Details for django-quill-0.0.4.tar.gz

Release files / django-quill-0.0.4.tar.gz

Download URL django-quill-0.0.4.tar.gz
Size 208.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d4f16d1f1edae4acbc05ba9662df6312a4d5a0ba63ecba4a78f2f37ef7511c13
BLAKE2b-256 checksum
How to use checksums
90bdfc1de647a05464fe9f665b7bf31a95cd343a5c8f0f6e1a62a7addacbcdad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-quill 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page