A django-cms plugin that displays text and uses the [Redactor](http://imperavi.com/redactor) editor for editing.
Note that Redactor requires a license, therefore it is not included in this repository.
Installation
To get the latest stable release from PyPi
pip install djangocms-text-redactor
To get the latest commit from GitHub
pip install -e git+git://github.com/bitmazk/djangocms-text-redactor.git#egg=djangocms_text_redactor
Add djangocms_text_redactor to your INSTALLED_APPS
INSTALLED_APPS = (
...,
'djangocms_text_redactor',
)
Add the app’s URLs to your urls.py
urlpatterns += patterns(
'',
url(r'^djangocms-text-redactor/', include('djangocms_text_redactor.urls')),
...
)
Don’t forget to migrate your database
./manage.py migrate djangocms_text_redactor
Make sure that you include the redactor CSS and JS files in the CMS template that should contain the Redactor plugin.
Make sure to set the settings DJANGOCMS_TEXT_REDACTOR_IMAGE_UPLOAD_URL and DJANGOCMS_TEXT_REDACTOR_IMAGE_GET_JSON_URL to the url names of the two views that handle this (see Redactor documentation).
Usage
Add the Redactor plugin to one of your placeholders. It will have some sane default settings. You can leave the settings for toolbarExternal, imageUpload and imageGetJson as they are because they will be set according to your settings.
Contribute
If you want to contribute to this project, please perform the following steps
# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 djangocms-text-redactor
make develop
git co -b feature_branch master
# Implement your feature and tests
git add . && git commit
git push -u origin feature_branch
# Send us a pull request for your feature branch
Release files for djangocms-text-redactor 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| djangocms-text-redactor-0.1.1.tar.gz | 10.4 kB | Details |
Release files / djangocms-text-redactor-0.1.1.tar.gz
| Download URL | djangocms-text-redactor-0.1.1.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df338fc8b6078d63f3109b8e0f7d5d3ac37db12a758fb2968c3079c92600ee2d
|
|
BLAKE2b-256 checksum How to use checksums |
fa5559bf86a0bd29b50d9391cae0ab194d53306585e9b74da6bf15a1b24bc381
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |