Skip to main content

Sir Trevor editor for Mezzanine

Project description

mezzanine-sirtrevor
=========

[Sir Trevor editor] for [Mezzanine CMS]. It replaces the default editor with [Sir Trevor editor] . The code is taken from [django-sirtrevor] and made the appropriate changes to work with mezzanine and incorporate media library with image upload.

Quick start
-----------

1. Install mezzanine-sirtrevor::

> pip install mezzanine-sirtrevor

2. Add ``sirtrevor`` to your INSTALLED_APPS setting like this::

> INSTALLED_APPS = (
>
> 'sirtrevor'.
> .....
> )

3. Add sirtrevor urls::

> url(r'^sirtrevor/', include('sirtrevor.urls')),
4. add below settings

> RICHTEXT_WIDGET_CLASS = "sirtrevor.widgets.SirTrevorWidget"

> RICHTEXT_FILTERS = (
"sirtrevor.filters.json_html",
)



-------
**that's it. now you can see new editor in admin and inline editing area.**

Limitation
------------
"sirtrevor" should be the first app in your installed apps list because it overrides editable.js. If you have your custom theme app then you need to merge your app with sirtrevor app.


Configuration
-------------
``SIRTREVOR_UPLOAD_PATH``
Path where to store uploaded images relative to MEDIA_ROOT. (not configurable via widget kwargs) Defaults to uploads

Please check [Sir Trevor editor] and [django-sirtrevor] for more configuration options.


[Mezzanine CMS]:http://mezzanine.jupo.org/
[Sir Trevor editor]:http://madebymany.github.io/sir-trevor-js/
[django-sirtrevor]:https://github.com/philippbosch/django-sirtrevor
[configuration options]:http://madebymany.github.io/sir-trevor-js/docs.html#2

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mezzanine-sirtrevor-0.1.0.zip (465.5 kB view details)

Uploaded Source

File details

Details for the file mezzanine-sirtrevor-0.1.0.zip.

File metadata

File hashes

Hashes for mezzanine-sirtrevor-0.1.0.zip
Algorithm Hash digest
SHA256 14b3864c39d6908dfb24d7abf39b4ef76d0e8e55004560a61ad5a4642064a721
MD5 bcc350e1b43a3e3f1577768407ac1b0f
BLAKE2b-256 7b5fbb6865bd4e0156986f127cad6175f2cb460ad000317f3944fc363ae1ba93

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page