django-hallo-markdown

Hallo WYSIWYG Markdown widget for Django
Download

django-hallo-markdown Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Stefan Kjartansson

django-hallo-markdown Tags


django-hallo-markdown Description

django-hallo-markdown is a hallo js markdown editor wrapper for Django. Made for use in FeinCMS, supports multiple editors on the same page.InstallationYou can install django-hallo-markdown either via the Python Package Index (PyPI) or from source.To install using pip,: pip install -U django-hallo-markdownTo install using easy_install,: easy_install -U django-hallo-markdownExample Usage with FeinCMSfrom django import formsfrom django.utils.translation import ugettext_lazy as _from django.contrib.markup.templatetags.markup import markdownfrom django.db import modelsfrom feincms.module.page.models import Pagefrom feincms.admin.item_editor import ItemEditorFormfrom djhallo.widgets import HalloInputclass 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)Product's homepage


django-hallo-markdown Related Software