2020-01-16 18:14:03 +03:00
|
|
|
<KoenigCard
|
|
|
|
@icon="koenig/card-indicator-html"
|
|
|
|
@class={{concat (kg-style "container-card") " mih10 miw-100 relative"}}
|
|
|
|
@headerOffset={{this.headerOffset}}
|
|
|
|
@toolbar={{this.toolbar}}
|
|
|
|
@payload={{this.payload}}
|
|
|
|
@isSelected={{this.isSelected}}
|
|
|
|
@isEditing={{this.isEditing}}
|
|
|
|
@selectCard={{action this.selectCard}}
|
|
|
|
@deselectCard={{action this.deselectCard}}
|
|
|
|
@editCard={{action this.editCard}}
|
|
|
|
@saveCard={{action this.saveCard}}
|
2020-10-21 14:16:04 +03:00
|
|
|
@saveAsSnippet={{this.saveAsSnippet}}
|
2020-01-16 18:14:03 +03:00
|
|
|
@onLeaveEdit={{action "leaveEditMode"}}
|
|
|
|
@editor={{this.editor}}
|
|
|
|
>
|
|
|
|
{{#if this.isEditing}}
|
|
|
|
<GhCmEditor @value={{this.payload.html}}
|
|
|
|
@class="koenig-card-html--editor"
|
2022-09-13 11:19:14 +03:00
|
|
|
@autofocus={{true}}
|
|
|
|
@lineWrapping={{true}}
|
2020-01-16 18:14:03 +03:00
|
|
|
@update={{action "updateHtml"}}
|
|
|
|
/>
|
2018-02-15 18:57:44 +03:00
|
|
|
{{else}}
|
2020-01-16 18:14:03 +03:00
|
|
|
<div class="koenig-card-html-rendered">{{{sanitize-html this.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}}
|
2020-01-16 18:14:03 +03:00
|
|
|
</KoenigCard>
|