Socket
Socket
Sign inDemoInstall

wagtail-redactor

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    wagtail-redactor

Imperavi Redactor for WagtailCMS


Maintainers
1

Readme

Wagtail Redactor

Fork of django-wysiwyg-redactor, that works with WagtailCMS.

Requirements

  • wagtail>=1.5

This package comes with Codemirror

What's inside

  • wagtail_redactor.fields.RedactorField - Django field
  • wagtail_redactor.blocks.RedactorFieldBlock - Wagtail StreamField block

Quick start

  • Install:
       pip install -e git+https://github.com/diveru4i/wagtail-redactor.git#egg=wagtail_redactor
    
  • Add "wagtail_redactor" to your INSTALLED_APPS
       INSTALLED_APPS = (
           ...
           'wagtail_redactor',
           ...
    
       )
    

*. Add url(r'^redactor/', include(wagtail_redactor.urls)), to urls.py

import wagtail_redactor.urls

urlpatterns = [
    # ...
    url(r'^redactor/', include(wagtail_redactor.urls)),
    # ...
]
  • Add default config in settings.py
REDACTOR_OPTIONS = {'lang': 'en'}
REDACTOR_UPLOAD = 'uploads/'
FILE_UPLOAD_PERMISSIONS = 0644
  • If you wish to use RedactorFieldBlock as part of a more complex StreamField block, you should add icon-redactor to it's Meta:
class MoreComplexBlock(blocks.StructBlock):
    title = blocks.CharBlock()
    text = RedactorFieldBlock(label=u'Text', required=False)

    class Meta:
        icon = 'pick icon-redactor'

Documentation

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc