Ghost/ghost/admin/lib/ghost-editor/addon/cards/image-card_html.js

13 lines
411 B
JavaScript
Raw Normal View History

/* jshint ignore:start */
// this has to be a node style module as it's imported by the front end and ember.
// a card has to have an editor object, and an HTML object. In the future we might have AMP and Text (for FTS) renderers.
module.exports = {
name: 'image-card',
render: function(opts) {
return '<img src="' + opts.payload.img + '" />';
}
};
/* jshint ignore:end */