Django pell WYSIWYG widget
Project description
Django Pell
Custom django widget built on pell.
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_pell-0.0.10.tar.gz.
File metadata
- Download URL: django_pell-0.0.10.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
104c3dd8ed42e9f4fa79732c89d903aa8ae3e06a78be8b2d02d89f5a972e22bd
|
|
| MD5 |
3572077183aaa436726d1ed5b11d1396
|
|
| BLAKE2b-256 |
93d3a7b74621aaaed74cb6aba5205d71239c75b300066224c645fef98ba08c7d
|
File details
Details for the file django_pell-0.0.10-py3-none-any.whl.
File metadata
- Download URL: django_pell-0.0.10-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19a1d5e7d519fe96047371ade60d59ab8ec9b607453b7ed4c3903fb0a440ff24
|
|
| MD5 |
63346eaf1438b53ba76d8c2ffc29a236
|
|
| BLAKE2b-256 |
c008883c9f9318575bfda428af2d680543a0b8d55551b2535f410bcc314f9997
|