Django Aloha Editor
The Django Aloha Editor is a WYSIWYG editor for all your Django powered websites By default it always uses the latest version of Aloha Editor http://aloha-editor.org/
How it works
Django Aloha Editor checks the user permissons, wraps the content with an aloha editor <div> and saves the edited content with an AJAX call.
Installation
pip install django-aloha-editor
Add the following url to your project’s urls.py file:
url(r'^__alohaeditor__/', include('aloha_editor.urls', namespace='aloha_editor')),
Add aloha_editor to your INSTALLED_APPS setting so Django can find the template files and template tags associated with Aloha Editor.
Example
views.py
from django.shortcuts import render_to_response
from books.models import Book
def book_detail(request, book_id):
try:
book = Book.objects.get(pk=book_id)
except Book.DoesNotExist:
raise Http404
return render_to_response('book_detail.html', {'book': book})
book_detail.html
{% load aloha_editor %}
<html>
<head>
{% if user.is_authenticated %}
{% include "aloha_editor/css.html" %}
{% include "aloha_editor/js.html" %}
{% endif %}
</head>
<body>
<h1>{{ book.title }}</h1>
{% aloha_editor book.description %}
</body>
</html>
TODOs and BUGS
You found a bug or have a suggestion for improvement, please let me know!
See: http://github.com/baskoopmans/django-aloha-editor/issues
Metadata
Release files for django-aloha-editor 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-aloha-editor-1.1.0.zip | 11.7 kB | Without provenance | Details for django-aloha-editor-1.1.0.zip |
Release files / django-aloha-editor-1.1.0.zip
| Download URL | django-aloha-editor-1.1.0.zip |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf4c008889b81c7674e50ff0373e5a89dd2f2c28be037d8c95ad9da05120269a
|
|
BLAKE2b-256 checksum How to use checksums |
9b0b8dda5aaf1a4fedf4191f796a9076e5c4c05903377de7d2b9b36a10b145c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-aloha-editor 1.1.0
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.