Wagtail text colour picker for DraftJS, with support for Wagtail > 5.2
Project description
Wagtail Colour Picker
A colour picker for Wagtail's DraftJS editor. Original repo Forked repo
Installation
TODO
Setup
Add colorpicker and wagtailcolourpicker to INSTALLED_APPS in your settings. Ensure this is added after you have added all other django/wagtail modules.
INSTALLED_APPS = [
...
'colorpicker'
'wagtailcolourpicker',
...
]
Settings
Picker icon setting
WAGTAILCOLOURPICKER_ICON = ['...']
Use an icon name from the wagtail registered icon list or an array of strings to use SVG paths for a 1024x1024 viewbox. Example(right above inline styles scroll up)
Models
To add a color, go to Snippets -> Color
All added colors are then registered to the richtext features.
Screenshots
.. figure:: http://wagtailcolourpicker.readthedocs.io/en/latest/_images/screen_1.png :width: 728 px
Picker
Selected Text
Example app
-
Clone the repo
git clone https://github.com/A-Amen/asdmenon-wagtailcolourpicker.git
-
Install dependencies
pip install -r requirements.txt'
-
Migrate
python manage.py migrate
-
Create a superuser
python manage.py createsuperuser
-
Then runserver.
python manage.py runserver
Go to http://127.0.0.1:8000/admin and add a new Basic page to test your changes.
Example site with docker
Clone the repo
git clone https://github.com/A-Amen/asdmenon-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/admin and add a new basic page
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wagtailrichtextcolourpicker-0.1.0.tar.gz.
File metadata
- Download URL: wagtailrichtextcolourpicker-0.1.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d05d2117759adb276fc41a750309942468c8669a64935a81d2643c500549835
|
|
| MD5 |
7178ed9c306b6c2082f2b1e55cc74ac8
|
|
| BLAKE2b-256 |
460ed62cc173c2c8d201dd7bca4aac6c2b0296e732e5207bbde1e9efc53bf4bd
|
File details
Details for the file wagtailrichtextcolourpicker-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wagtailrichtextcolourpicker-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7f153580648587ac13c1c7bdeb45336dc64ecb89623eafc7a7e69ba8b9b7a20
|
|
| MD5 |
2a464a33c17940ef585593b97eedd08d
|
|
| BLAKE2b-256 |
63d13d1dfbfd0b4ed23de18b6a53d6acb6092d9403f30539b58c8aaf0af449b4
|