This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This is WYMeditor adapted as richtext widget for Mezzanine CMS. It includes basic WYMeditor distribution along with custom image button for use with filebrowser-safe.

Screenshots

WYMeditor widget in Mezzanine admin:

With a media library popup:

With inline editing:

Installation

To install mezzanine-wymeditor first make sure you meet the requirements.

Warning

It requires at least Mezzanine 1.4.9 and filebrowser-safe 0.2.28 to work correctly.

Now get it from pypi:

pip install mezzanine-wymeditor

Or directly from source if you prefer:

git clone https://github.com/excieve/mezzanine-wymeditor
cd mezzanine-wymeditor
python setup.py install

Once installed, set up RICHTEXT_WIDGET_CLASS in your local_settings.py like this:

RICHTEXT_WIDGET_CLASS = 'mezzanine_wymeditor.widgets.WymeditorWidget'

and add the application to INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'mezzanine_wymeditor',
    ...
)

Additionally you may override WYMeditor initialisation code (to set your own configs for instance):

WYMEDITOR_SETUP_JS = 'path/to/your/setup.js'

If everything goes well default editor will be replaced with WYMeditor everywhere.

Caveats

  1. Packaged WYMeditor is version 1.0.0b7, which means it’s a beta. While I consider it to be good enough for everyday use, bugs are possible - please submit them to WYMeditor developers. WYMeditor distribution will be updated upon new releases.
  2. There’s a tiny modification to WYMeditor sources to make it detect static URL properly in Mezzanine admin so it’s not completely vanilla. There are no other changes to the original source.
  3. There are currently two image buttons on the toolbar. The default one lets you insert an image from arbitrary URL and modify some attributes of existing images. The custom one (with filebrowser icon, always at the end) opens up the media library and lets you choose an image from there, which is immediately inserted at the cursor position.
  4. You may want to disable (or relax) Mezzanine’s HTML filtering (RICHTEXT_FILTER_LEVEL) as WYMeditor has its own but it’s entirely up to you.
  5. There’s currently no convenient “insert video” functionality but one can still embed iframes in raw HTML provided RICHTEXT_FILTER_LEVEL = 2.
Release History

Release History

0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
mezzanine-wymeditor-0.3.tar.gz (303.0 kB) Copy SHA256 Checksum SHA256 Source Aug 5, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting