{{#koenig-card
    icon="koenig/card-indicator-html"
    class=(concat (kg-style "container-card") " mih10 miw-100 relative koenig-card-html-rendered")
    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}}
        {{{payload.html}}}
        <div class="koenig-card-click-overlay"></div>
    {{/if}}
{{/koenig-card}}
