2018-02-13 21:00:54 +03:00
|
|
|
{{#koenig-card
|
|
|
|
icon="koenig/markdown"
|
2018-02-20 18:02:47 +03:00
|
|
|
class=(kg-style "container-card")
|
2018-04-03 20:34:01 +03:00
|
|
|
toolbar=toolbar
|
2018-02-13 21:00:54 +03:00
|
|
|
isSelected=isSelected
|
|
|
|
isEditing=isEditing
|
|
|
|
onEnterEdit=(action "enterEditMode")
|
2018-03-15 20:54:15 +03:00
|
|
|
onLeaveEdit=(action "leaveEditMode")
|
2018-02-13 21:00:54 +03:00
|
|
|
selectCard=(action selectCard)
|
|
|
|
editCard=(action editCard)
|
|
|
|
}}
|
|
|
|
{{#if isEditing}}
|
|
|
|
{{gh-textarea
|
|
|
|
class="koenig-card-markdown"
|
2018-02-28 14:44:03 +03:00
|
|
|
value=(readonly payload.markdown)
|
|
|
|
input=(action "updateMarkdown" value="target.value")
|
2018-02-13 21:00:54 +03:00
|
|
|
autoExpand=".gh-koenig-editor"}}
|
|
|
|
{{else}}
|
|
|
|
{{renderedMarkdown}}
|
|
|
|
{{/if}}
|
|
|
|
{{/koenig-card}}
|