EmenciaCkeditor
This library looks into in the INSTALLED_APPS for directories named editor-site-templates and explore their content to export a list of templates for CKEditor.
Install
You can retrieve it via pip:
pip install django-datadownloader
Then add ckeditor_emencia in the INSTALLED_APPS and register the ckeditor_emencia.urls in the same prefix as ckeditor.
Usage
To create templates, drop an HTML file in a directory name editor-site-templates in an app:
my_app/
__init__.py
models.py
editor-site-templates/
template1.html
To define title, description, or the image associated with the template, write a file manifest.json at the root of the editor-site-templates/ directory. This manifest is a JSON encoded dict. The key is the path relative to editor-site-templates/ and the value is a dict of keys title, description and image. All the keys are optionnal. The image is relative to STATIC_URL.
Sample resulting tree:
my_app/
__init__.py
models.py
static/
template1-icon.png
editor-site-templates/
manifest.json
template1.html
Sample manifest.json:
{
"template1.html": {
"title": "Template 1",
"description": "description for template1",
"image": "template1-icon.png",
}
}
Metadata
Release files for ckeditor-emencia 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ckeditor-emencia-0.1.1.tar.gz | 41.4 kB | Without provenance | Details for ckeditor-emencia-0.1.1.tar.gz |
Release files / ckeditor-emencia-0.1.1.tar.gz
| Download URL | ckeditor-emencia-0.1.1.tar.gz |
|---|---|
| Size | 41.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
221b1d68603cac03587e61cc3e305109ceef9d6fc60131f54aef724433ac6f54
|
|
BLAKE2b-256 checksum How to use checksums |
f5d919a519938074f4adf69a04d09afa15275451859b289e587a998f5233946f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
|
Security for ckeditor-emencia 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.