Koenig - Rename server-side cards

refs https://github.com/TryGhost/Ghost/issues/9311
- match card names to the new generic Koenig card names introduced in 95a068615d
This commit is contained in:
Kevin Ansfield 2018-02-01 12:40:49 +01:00
parent 6f4e112c87
commit 0833b28557
5 changed files with 8 additions and 4 deletions

View File

@ -0,0 +1,4 @@
// this card is just an alias of the `markdown` card which is necessary because
// our markdown-only editor was using the `card-markdown` card name
let markdownCard = require('./markdown');
module.exports = markdownCard;

View File

@ -1,5 +1,5 @@
module.exports = {
name: 'card-hr',
name: 'hr',
type: 'dom',
render(opts) {
return opts.env.dom.createElement('hr');

View File

@ -1,7 +1,7 @@
'use strict';
module.exports = {
name: 'card-html',
name: 'html',
type: 'dom',
render(opts) {
let html = `<div class="kg-card-html">${opts.payload.html}</div>`;

View File

@ -1,5 +1,5 @@
module.exports = {
name: 'card-image',
name: 'image',
type: 'dom',
render(opts) {
var img = opts.env.dom.createElement('img');

View File

@ -1,5 +1,5 @@
module.exports = {
name: 'card-markdown',
name: 'markdown',
type: 'dom',
render: function (opts) {
var converters = require('../converters'),