Skip to main content

Text Plugin for django CMS using Martor for Markdown-enabled text-editing.

Project description

djangocms-mdeditor

PyPI version

djangocms-mdeditor is a ready-for-use addon for django CMS text editor using Martor as markdown-enabled text editor. The addon provides simple text editing using markdown, or the WYSIWYG-style setup provided by Martor (supports Bootstrap and Semantic-UI).

Requirements

djangocms-mdeditor is only tested with the following requirements.

  • Django>=3.2
  • Martor>=1.6.4
  • django-cms>=3.9

Installation

djangocms-mdeditor is available directly from PyPi.

  1. Install the package into your project via e.g. pip install djangocms-mdeditor.
  2. Add djangocms-mdeditor and its requirement martor to your INSTALLED_APPS, similar to:
# settings.py
INSTALLED_APPS = [
    ...
    'djangocms-mdeditor',
    'martor',
]
  1. To be able to use the editors preview-function and more, you need to add the following to your urls.py.
    Be sure to place it before the cms.urls-include:
urlpatterns = [
    ...
    re_path(r'martor/', include('martor.urls')),
    re_path(r'^', include('cms.urls')),
]
  1. Perform a database migration with python manage.py migrate djangocms-mdeditor.
  2. If you don't have automatic static-collection configured for deployments, then remember to perform a python manage.py collectstatic.

Usage / Settings

For extra settings regarding the editor - please see the Martor project.

Changelog

The release history / changelog is listed in the CHANGES.md-file.
CHANGES

Contributing

This is an open-source project. We'll be delighted to receive your feedback in the form of bug reports, bug fixes and new features in the form of issues and pull requests. These can be contributed on the projects GitHub-page.

  1. Fork the repository on GitHub.
  2. Make a new branch from the main-branch (git checkout -b feature/fooBar).
  3. And commit your changes to it (git commit -am 'Add some fooBar').
  4. WIP (install dev-requirements with pipenv and run tests)
  5. Create a Pull Request with your contribution.

WIP - contribution guidelines / code-of-conduct?

Contributors

The djangocms-mdeditor project was started and developed by Danni Randeris in 2021.

Distributed under the MIT license. See LICENSE for more information.

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

djangocms-mdeditor-0.1.0.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

djangocms_mdeditor-0.1.0-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

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