mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
refs #7429 - ☢️ 👷🏻♀️ This PR removes the dependency on Ghost-Editor and replaces it with the Mobiledoc DOM renderer. It includes new DOM based default cards and atoms.
9 lines
212 B
JavaScript
9 lines
212 B
JavaScript
module.exports = {
|
|
name: 'image-card',
|
|
type: 'dom',
|
|
render(opts) {
|
|
var img = opts.env.dom.createElement('img');
|
|
img.setAttribute('src', opts.payload.img);
|
|
return img;
|
|
}
|
|
};
|