Reoako translator for wagtail draftail editor
Project description
About Wagtail Reoako
Wagtail CMS plugin for reoako.nz. Contact the team at Reoako to get your API key.
Installation
-
Add wagtail_reoako to INSTALLED_APPS
INSTALLED_APPS = [ ... 'wagtail_reoako', ... ]
-
Add REOAKO API KEY to settings
# Add Reoako settings REOAKO_API_KEY = '<your_api_key>' # Required. And client domains must be whitelisted REOAKO_API_DOMAIN = 'https://api.reoako.nz'
Note, any environment domains and port numbers (including dev domains) must be whitelisted against your API key. e.g. if your developing locally on http://localhost:8000 this must be whitelisted for your API key. Get in touch with the Reoako team to discuss.
Configuration
If you're using the default Draftail Rich Text Area and have completed the installation steps, Reoako will now be available as a tool in the editor.
If you have non standard Draftail editors defined and you'd like to add it as an additional feature, this can be defined like so:
# Add Reoako to draftail editor.
WAGTAILADMIN_RICH_TEXT_EDITORS = {
'default': {
'WIDGET': 'wagtail.admin.rich_text.DraftailRichTextArea',
'OPTIONS': {
'features': [
...
'reoako',
...
]
}
},
}
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
Hashes for wagtail_reoako-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b8b15a18742982932e59cfe0806d49c15c530272ddc5dd6896cd51b51957f0f |
|
MD5 | da23cba808cc27eb8ad7cd5decf85ede |
|
BLAKE2b-256 | 667401d5c50bdf6831f822b2a02790abc2f5a5c75c286d1bf061318d02a61f34 |