mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-16 20:43:01 +03:00
d0dc7c5ee1
no issue - Renames Cards so they comply with the `card-{{name}}` convention rather than `{{name}}-card` - Adds an unkonwnCardHandler to the editor.
11 lines
253 B
JavaScript
11 lines
253 B
JavaScript
module.exports = {
|
|
name: 'card-image',
|
|
type: 'dom',
|
|
render(opts) {
|
|
var img = opts.env.dom.createElement('img');
|
|
img.className = 'kg-card-image';
|
|
img.setAttribute('src', opts.payload.img);
|
|
return img;
|
|
}
|
|
};
|