[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.
1. Install mezzanine-sirtrevor::
> pip install mezzanine-sirtrevor
2. Add ``sirtrevor`` to your INSTALLED_APPS setting like this::
> INSTALLED_APPS = (
3. Add sirtrevor urls::
> url(r'^sirtrevor/', include('sirtrevor.urls')),
4. add below settings
> RICHTEXT_WIDGET_CLASS = "sirtrevor.widgets.SirTrevorWidget"
> RICHTEXT_FILTERS = (
**that's it. now you can see new editor in admin and inline editing area.**
"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.
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.
[Sir Trevor editor]:http://madebymany.github.io/sir-trevor-js/
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.