Skip to main content

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:

http://excieve.github.com/mezzanine-wymeditor/img/mezzanine_wymeditor_admin.jpg

With a media library popup:

http://excieve.github.com/mezzanine-wymeditor/img/mezzanine_wymeditor_gallery.jpg

With inline editing:

http://excieve.github.com/mezzanine-wymeditor/img/mezzanine_wymeditor_inline.jpg

Installation

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

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.

Metadata

Release files for mezzanine-wymeditor 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mezzanine-wymeditor 0.3
File Size Uploaded Provenance
mezzanine-wymeditor-0.3.tar.gz 303.0 kB Without provenance Details

Release files / mezzanine-wymeditor-0.3.tar.gz

Download URL mezzanine-wymeditor-0.3.tar.gz
Size 303.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7343b7ad0db9c92bc59423c19a01753b08e657380cdc1d5242680ee632efc50b
BLAKE2b-256 checksum
How to use checksums
d19b7fd29b2719d97864395dc2ba2f69f1632f34181efaca16c17326a989ce6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for mezzanine-wymeditor 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page