upfrontIO/livingdocs-engine — pull request #120 by marcbachmann (2014-10-20 17:05:08+00:00)
Title: Image directive crop configuration

There's a need to define a crop configuration per image directive.
The simplest solution would be to define an array of objects in a `directive[directiveName]` object.
The `crop` object is currently what we use in the editor.

```json
{
"id": "cover",
"title": "Cover",
"directives": {
"image": {
"crop": [
{
"ratio": "16/9",
"label": "16:9",
"name": "wide"
}
]
}
},
"html": "

\n

Titel

\n

\n

Oberzeile

\n

Titel

\n

\n

"
}
```

Another possibility is to define image styles separately. That way image styles can be defined per design or component.

```json
{
"id": "cover",
"title": "Cover",
"directives": {
"image": {
"styles": ["16/9"]
}
},
"imageStyles": {
"16/9": {
"ratio": "16/9",
"label": "16:9",
"name": "wide"
}
},
"html": "

\n

Titel

\n

\n

Oberzeile

\n

Titel

\n

\n

"
}
```