Skip to main content

Raw HTML Plugin for DjangoCMS with HTML code editor.

Project description

djangcms-rawhtml

DjangoCMS Plugin that lets you insert raw HTML code into a page.

A raw HTML plugin may be a bit of a CMS anti-pattern, but every now and then there are times when inserting a little block of HTML code is needed to get a job done quickly.

This Plugin combines the ideas of cmsplugin-raw-html <https://github.com/makukha/cmsplugin-raw-html>_ with code-editor-django-admin <https://mr-coffee.net/blog/code-editor-django-admin>_ by giving you a nice HTML editor CodeMirror <http://codemirror.net/>_ to edit the code in rather than a default TextField.

Installation

  1. Install via pip::

    pip install djangocms-rawhtml

  2. Add to your INSTALLED_APPS (in settings.py)::

    INSTALLED_APPS = ( ... 'djangocms_rawhtml', ... )

  3. Run migrations::

    python manage.py migrate djangocms_rawhtml

  4. "Raw HTML" should now be available as a plugin in the CMS!

Configuration

In your settings.py you can set:

CODEMIRROR_THEME : (Optional) The name of the codemirror theme you would like to use (just the name, don't include the .css part). Will use default if not set. See: https://codemirror.net/theme/ for a list of themes.

Download files

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

Source Distribution

djangocms-rawhtml-1.3.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangocms_rawhtml-1.3.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file djangocms-rawhtml-1.3.0.tar.gz.

File metadata

  • Download URL: djangocms-rawhtml-1.3.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for djangocms-rawhtml-1.3.0.tar.gz
Algorithm Hash digest
SHA256 1172fce5e0f8a3d61d248a71489782a7b161d0e8823fbea22fc3e12951996782
MD5 90b8d34eb4dd9626970aa26f4afed8c9
BLAKE2b-256 7769f49beb3dbe124ee9bc0f02dd452c8fd75ce667ace9fea3c5350439dd6199

See more details on using hashes here.

File details

Details for the file djangocms_rawhtml-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_rawhtml-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3048781704b97bf08ed63dfaa3153d03bdda085a2b7d88fc7091c3ed33152e35
MD5 0cfcaf5965c5d2825580d58969422401
BLAKE2b-256 5ec02f8b486064fa1804582326e2974338b102d1f88e34d45761008c2838ef01

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