mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
4c05d618bd
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
24 lines
716 B
Handlebars
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}}
|