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:
parent
6f4e112c87
commit
0833b28557
4
core/server/lib/mobiledoc/cards/card-markdown.js
Normal file
4
core/server/lib/mobiledoc/cards/card-markdown.js
Normal 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;
|
@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
name: 'card-hr',
|
||||
name: 'hr',
|
||||
type: 'dom',
|
||||
render(opts) {
|
||||
return opts.env.dom.createElement('hr');
|
||||
|
@ -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>`;
|
||||
|
@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
name: 'card-image',
|
||||
name: 'image',
|
||||
type: 'dom',
|
||||
render(opts) {
|
||||
var img = opts.env.dom.createElement('img');
|
||||
|
@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
name: 'card-markdown',
|
||||
name: 'markdown',
|
||||
type: 'dom',
|
||||
render: function (opts) {
|
||||
var converters = require('../converters'),
|
||||
|
Loading…
Reference in New Issue
Block a user