Skip to main content

Wagtail text colour picker for DraftJS

Project description

A colour picker for Wagtail’s DraftJS editor.

Installation

pip install wagtailcolourpicker

Setup

Add to installed app:

INSTALLED_APPS = [
   ...
   'wagtailcolourpicker',
   ...
]

Settings

# picker icon
WAGTAILCOLOURPICKER_ICON = ['...']
# Add your colours
WAGTAILCOLOURPICKER_COLOURS = {
   'black': '#000000',
   'white': '#ffffff'
}

Documentation

Can be found on readthedocs.

Screenshots

http://wagtailcolourpicker.readthedocs.io/en/latest/_images/screen_1.png

Picker

http://wagtailcolourpicker.readthedocs.io/en/latest/_images/screen_2.png

Selected Text

Example site with docker

Clone the repo

$ git clone https://github.com/AccentDesign/wagtailcolourpicker.git

Run the docker container

$ cd wagtailcolourpicker
$ docker-compose up

Create yourself a superuser

$ docker-compose exec app bash
$ python manage.py createsuperuser

Go to http://127.0.0.1:8000/cms and add a new basic page

Testing

TODO

Project details


Download files

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

Files for wagtailcolourpicker, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size wagtailcolourpicker-0.0.6.tar.gz (8.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page