Ghost/ghost/admin/lib/ghost-editor/addon/cards/image-card_html.js
Ryan McCarvill e422f0bcba 👷🏻‍♀️🚧👷 Ghost-Editor integration.
Integrated Ghost-Editor as an in-repo addon.
Moved CSS to /app/styles/addons/ghost-editor/

Still a WIP.
2017-03-02 09:56:51 +00:00

13 lines
411 B
JavaScript

/* 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 */