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.

Source Distribution

wagtailcolourpicker-0.0.4.tar.gz (8.5 kB view hashes)

Uploaded Source

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