jenkins/release/: ckeditor-emencia-0.1.1 metadata and description
Ckeditor bindings
author | Grégoire ROCHE |
author_email | gregoire@emencia.com |
platform |
|
Because this project isn't in the mirror_whitelist
,
no releases from root/pypi are included.
File | Tox results | History |
---|---|---|
ckeditor_emencia-0.1.1-py2.py3-none-any.whl
|
|
|
ckeditor_emencia-0.1.1.tar.gz
|
|
# 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.
## Installation
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`.
```
my_app/
__init__.py
models.py
static/
template1-icon.png
editor-site-templates/
manifest.json
template1.html
```
```
manifest.json
{
"template1.html": {
"title": "Template 1",
"description": "description for template1",
"image": "template1-icon.png",
}
}
```
Render warnings:
<string>:19: (ERROR/3) Unexpected indentation.
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.
## Installation
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`.
```
my_app/
__init__.py
models.py
static/
template1-icon.png
editor-site-templates/
manifest.json
template1.html
```
```
manifest.json
{
"template1.html": {
"title": "Template 1",
"description": "description for template1",
"image": "template1-icon.png",
}
}
```
Render warnings:
<string>:19: (ERROR/3) Unexpected indentation.