Ghost/core/server/apps/default-cards/cards/image.js
Ryan McCarvill d0dc7c5ee1 📦 Card-Rename (#8218)
no issue
- Renames Cards so they comply with the `card-{{name}}` convention rather than `{{name}}-card`
- Adds an unkonwnCardHandler to the editor.
2017-03-24 10:03:33 +00:00

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;
}
};