Hallo WYSIWYG Markdown widget for Django
Project description
A hallo js markdown editor wrapper for Django. Made for use in FeinCMS, supports multiple editors on the same page.
Installation
You can install django-hallo-markdown either via the Python Package Index (PyPI) or from source.
To install using pip,:
$ pip install -U django-hallo-markdown
To install using easy_install,:
$ easy_install -U django-hallo-markdown
Example Usage with FeinCMS
from django import forms from django.utils.translation import ugettext_lazy as _ from django.contrib.markup.templatetags.markup import markdown from django.db import models from feincms.module.page.models import Page from feincms.admin.item_editor import ItemEditorForm from djhallo.widgets import HalloInput class MarkdownContentAdminForm(ItemEditorForm): content = forms.CharField(widget=HalloInput(), required=False, label=_('text')) class MarkdownPageContent(models.Model): form = MarkdownContentAdminForm feincms_item_editor_form = MarkdownContentAdminForm content = models.TextField() class Meta: abstract = True def render(self, **kwargs): return markdown(self.content) Page.create_content_type(MarkdownPageContent)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-hallo-markdown-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54cd3ab9d32c634b4aae71ef6b2a3f081007a52d9279be92b0f74828d6f374ea |
|
MD5 | 25efd4dee586a54b26e2ebb144642c90 |
|
BLAKE2b-256 | c8430ae7a355fb2604e761314e6ee71e7604267327e1e5ebfb28e925506ec454 |