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

TODO

Screenshots

screen_1.png

Picker

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.1.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file wagtailcolourpicker-0.0.1.tar.gz.

File metadata

File hashes

Hashes for wagtailcolourpicker-0.0.1.tar.gz
Algorithm Hash digest
SHA256 caa57efb1469bb793495b5c01629540aface80fa713cb34278527f4f1acdb93e
MD5 d96f8c56fa8bec1a51f1dca85574a527
BLAKE2b-256 de8d68d219881b2e9fe0c7c3d5c74e431a3ddbde360039cd8007b9c98a8076a9

See more details on using hashes here.

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