Metadata-Version: 2.5
Name: wagtail-prose-editor-images
Version: 0.1.2
Summary: Wagtail Image Chooser integration for django-prose-editor.
Author: Vladimir Tarasov
Description-Content-Type: text/markdown
Classifier: Framework :: Django
Classifier: Framework :: Wagtail
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: wagtail>=6.0
Requires-Dist: django-prose-editor>=0.26
Project-URL: Home, https://github.com/vovansrnd/wagtail-prose-editor-images
Project-URL: Issues, https://github.com/vovansrnd/wagtail-prose-editor-images/issues
Project-URL: Source, https://github.com/vovansrnd/wagtail-prose-editor-images
Import-Name: wagtail_prose_editor_images

# wagtail-prose-editor-images

Adds native Wagtail Image Chooser integration to `django-prose-editor`.

## Features
- Toolbar button with native Wagtail image chooser modal.
- Clean integration with TipTap image node schema.
- Works out of the box in Wagtail Admin.

## Installation

```bash
pip install wagtail-prose-editor-images
```

Add to `INSTALLED_APPS` in your `settings.py` after `wagtail.images` and `django_prose_editor`:

```python
INSTALLED_APPS = [
    ...
    "wagtail.images",
    "django_prose_editor",
    "wagtail_prose_editor_images",
    ...
]
```

## Usage

In your model with `ProseEditorField`, simply enable the `Image` extension:

```python
from django_prose_editor.fields import ProseEditorField

class MyPage(Page):
    body = ProseEditorField(
        extensions={
            "Bold": True,
            "Italic": True,
            "Image": True,  # Enables image support and the Wagtail chooser button!
        }
    )
```

