An extension of the Django Textarea widget made for editing Markdown with a live preview.
Project description
# Django Bootstrap Markdown Editor
## A beautiful Markdown editor with a side by side preview
An extension of the Django Textarea widget made for editing [Markdown](http://daringfireball.net/projects/markdown/) with a live preview.
![Example](http://thegoods.aj7may.com/content/images/2013/Dec/Screen_Shot_2013_12_21_at_2_39_47_PM.png)
### Install:
`> pip install django-bootstrap-markdown`
### Usage:
* Add `django-bootstrap-markdown` to the installed apps of your Django Project
* Instead of using the django `Textarea` widget use the `MarkdownInput`
* Be sure to include the form's required media in the template. _ie._ `{{ form.media }}`
* Also be sure to include [Twitter Bootstrap](http://getbootstrap.com/)
* Include the markdown urls:
_urls.py_
urlpatterns = patterns('',
...
url(r'^markdown/', include('django_bootstrap_markdown.urls')),
...
)
### Example:
_forms.py_
from django import forms
from django_bootstrap_markdown.widgets import MarkdownInput
class PostForm(forms.Form):
title = forms.CharField()
markdown = forms.CharField( widget=MarkdownInput )
## A beautiful Markdown editor with a side by side preview
An extension of the Django Textarea widget made for editing [Markdown](http://daringfireball.net/projects/markdown/) with a live preview.
![Example](http://thegoods.aj7may.com/content/images/2013/Dec/Screen_Shot_2013_12_21_at_2_39_47_PM.png)
### Install:
`> pip install django-bootstrap-markdown`
### Usage:
* Add `django-bootstrap-markdown` to the installed apps of your Django Project
* Instead of using the django `Textarea` widget use the `MarkdownInput`
* Be sure to include the form's required media in the template. _ie._ `{{ form.media }}`
* Also be sure to include [Twitter Bootstrap](http://getbootstrap.com/)
* Include the markdown urls:
_urls.py_
urlpatterns = patterns('',
...
url(r'^markdown/', include('django_bootstrap_markdown.urls')),
...
)
### Example:
_forms.py_
from django import forms
from django_bootstrap_markdown.widgets import MarkdownInput
class PostForm(forms.Form):
title = forms.CharField()
markdown = forms.CharField( widget=MarkdownInput )
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-bootstrap-markdown-1.5.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb01ba087a529b076ab8caec1828ee61311b03b59dbb5ff6ba0f7dcf99224dbf |
|
MD5 | ba90ac3648203c7ea9c26425e1625051 |
|
BLAKE2b-256 | 0732881aec4b1ede59380e95975a33f667b602ea11cccf1c0accb2a8a27440c8 |