Skip to main content

Django pell WYSIWYG widget

Project description

Django Pell

Code style: black coverage report

Custom django widget built on pell.

Django Pell in action

Usage

class EditorForm(forms.Form):
    """Simple form which exposes the Django Pell Widget."""

    editor = forms.CharField(
        widget=PellWidget(),
        help_text='Pell is "the simplest and smallest WYSIWYG text editor for web, with no dependencies"',
        label=False,
    )


def editor_view(request):
    """Simple view which renders the EditorForm."""

    return render(
        request,
        "editor.html",
        context={"form": EditorForm()},
    )
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
{{ form.media }}
<body>
  {{ form.as_p }}
</body>
</html>

For a complete example check out the example included in this repo.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-pell, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size django_pell-0.0.10-py3-none-any.whl (7.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django_pell-0.0.10.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page