2018-02-15 18:57:44 +03:00
|
|
|
{{#koenig-card
|
2018-04-25 14:15:50 +03:00
|
|
|
icon="koenig/card-indicator-html"
|
2018-05-01 15:47:13 +03:00
|
|
|
class=(concat (kg-style "container-card") " mih10 miw-100 relative")
|
2018-05-01 17:55:51 +03:00
|
|
|
headerOffset=headerOffset
|
2018-04-03 20:34:01 +03:00
|
|
|
toolbar=toolbar
|
2018-02-15 18:57:44 +03:00
|
|
|
isSelected=isSelected
|
|
|
|
isEditing=isEditing
|
|
|
|
selectCard=(action selectCard)
|
|
|
|
editCard=(action editCard)
|
2018-03-15 20:54:15 +03:00
|
|
|
onLeaveEdit=(action "leaveEditMode")
|
2018-02-03 21:20:50 +03:00
|
|
|
}}
|
2018-02-15 18:57:44 +03:00
|
|
|
{{#if isEditing}}
|
|
|
|
{{gh-cm-editor payload.html
|
|
|
|
class="koenig-card-html--editor"
|
|
|
|
autofocus=true
|
2018-04-25 14:06:01 +03:00
|
|
|
lineWrapping=true
|
2018-02-15 18:57:44 +03:00
|
|
|
update=(action "updateHtml")
|
|
|
|
}}
|
|
|
|
{{else}}
|
2018-05-01 15:47:13 +03:00
|
|
|
<div class="koenig-card-html-rendered">{{{payload.html}}}</div>
|
2018-02-15 20:14:30 +03:00
|
|
|
<div class="koenig-card-click-overlay"></div>
|
2018-02-15 18:57:44 +03:00
|
|
|
{{/if}}
|
|
|
|
{{/koenig-card}}
|