django-markitup-widget is Django's textarea like widget for using markItUp! on textarea
Project description
django-markitup-widget is a Django form widget library for using markItUp! on Textarea
Install
sudo pip install django-markitup-widget
or:
sudo pip install git+git://github.com/lambdalisue/django-markitup-widget.git#egg=django-markitup-widget
You may need to copy templates/markitup directory to your TEMPLATE_DIRS
How to Use
First, you need to specified MARKITUP_PATH on settings.py MARKITUP_PATH is the URI of markItUp! directory like MARKITUP_PATH = r"javascript/markitup"
Use markitup.widgets.MarkItUpTextarea widgets for target Textarea like below:
from django import forms from markitup.widgets import MarkItUpTextarea markitup = MarkItUpTextarea( set='default', style='simple', ) document = forms.TextField(widget=markitup)
Settings
- MARKITUP_PATH
the URI for markItUp! directory (required)
- MARKITUP_DEFAULT_SET
the default set name (DEFAULT: default)
- MARKITUP_DEFAULT_SKIN
the default skin name (DEFAULT: simple)
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
Built Distribution
Close
Hashes for django-markitup-widget-0.1rc3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0300a6bae7b48d2dea3566350d9db4a04596e1f9c9ae51ecdef735f46b6c46e2 |
|
MD5 | 3a7ba8c6cc5d6e84c799b6234c1fa36f |
|
BLAKE2b-256 | a73040f021b529ef0b55f39b5f8ed1e26a7e79a8f189e6340562d15c5b645c2c |
Close
Hashes for django_markitup_widget-0.1rc3-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1172c939d22fc3f175b3c25db1ddf625e5f63484c3fc830eb8bbc21a48b93ba |
|
MD5 | 27725911e8b1db8e40f441527a021daf |
|
BLAKE2b-256 | 3cee6c86181d1297337681677c1ef111246eb65b65860ba235d096258cc4e55d |