Ghost/ghost/admin/lib/koenig-editor/addon/templates/components/koenig-card-html.hbs

19 lines
463 B
Handlebars
Raw Normal View History

{{#koenig-card
icon="koenig/embed"
isSelected=isSelected
isEditing=isEditing
selectCard=(action selectCard)
editCard=(action editCard)
}}
{{#if isEditing}}
{{gh-cm-editor payload.html
class="koenig-card-html--editor"
autofocus=true
update=(action "updateHtml")
}}
{{else}}
{{{payload.html}}}
<div class="koenig-card-click-overlay"></div>
{{/if}}
{{/koenig-card}}