mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
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
5 changed files with 8 additions and 4 deletions
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 = {
|
module.exports = {
|
||||||
name: 'card-hr',
|
name: 'hr',
|
||||||
type: 'dom',
|
type: 'dom',
|
||||||
render(opts) {
|
render(opts) {
|
||||||
return opts.env.dom.createElement('hr');
|
return opts.env.dom.createElement('hr');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'card-html',
|
name: 'html',
|
||||||
type: 'dom',
|
type: 'dom',
|
||||||
render(opts) {
|
render(opts) {
|
||||||
let html = `<div class="kg-card-html">${opts.payload.html}</div>`;
|
let html = `<div class="kg-card-html">${opts.payload.html}</div>`;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'card-image',
|
name: 'image',
|
||||||
type: 'dom',
|
type: 'dom',
|
||||||
render(opts) {
|
render(opts) {
|
||||||
var img = opts.env.dom.createElement('img');
|
var img = opts.env.dom.createElement('img');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'card-markdown',
|
name: 'markdown',
|
||||||
type: 'dom',
|
type: 'dom',
|
||||||
render: function (opts) {
|
render: function (opts) {
|
||||||
var converters = require('../converters'),
|
var converters = require('../converters'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue