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.

Source Distribution

django_pell-0.0.10.tar.gz (7.3 kB view hashes)

Uploaded source

Built Distribution

django_pell-0.0.10-py3-none-any.whl (7.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page