Ghost/ghost/admin/lib/koenig-editor/addon/templates/components/koenig-card-html.hbs
Zimo 4c05d618bd Koenig - Replace custom CSS classes with Spirit
no issue
- Koenig container styles for Spirit
- Applying Spirit styles to card menu
- Applying Spirit styles to generic cards
- Replacing icon styles with Spirit
- Fix slash menu selected state
- Cleanup of unused files + fix empty HTML
2018-05-02 15:54:22 +01:00

24 lines
716 B
Handlebars

{{#koenig-card
icon="koenig/card-indicator-html"
class=(concat (kg-style "container-card") " mih10 miw-100 relative")
headerOffset=headerOffset
toolbar=toolbar
isSelected=isSelected
isEditing=isEditing
selectCard=(action selectCard)
editCard=(action editCard)
onLeaveEdit=(action "leaveEditMode")
}}
{{#if isEditing}}
{{gh-cm-editor payload.html
class="koenig-card-html--editor"
autofocus=true
lineWrapping=true
update=(action "updateHtml")
}}
{{else}}
<div class="koenig-card-html-rendered">{{{payload.html}}}</div>
<div class="koenig-card-click-overlay"></div>
{{/if}}
{{/koenig-card}}