Ghost/ghost/admin/lib/koenig-editor/addon/templates/components/koenig-card-markdown.hbs
Peter Zimon 555758a372 Koenig - Basic styles for editor content (#1006)
refs https://github.com/TryGhost/Ghost/issues/9505
- paragraph and heading styles and vert rhythm
- blockquote and link styles
- list styles
- card styles
- markdown card styles
2018-04-20 15:43:20 +01:00

22 lines
655 B
Handlebars

{{#koenig-card
icon="koenig/markdown"
class=(concat (kg-style "container-card") " koenig-card-markdown-rendered")
toolbar=toolbar
isSelected=isSelected
isEditing=isEditing
onEnterEdit=(action "enterEditMode")
onLeaveEdit=(action "leaveEditMode")
selectCard=(action selectCard)
editCard=(action editCard)
}}
{{#if isEditing}}
{{gh-textarea
class="koenig-card-markdown"
value=(readonly payload.markdown)
input=(action "updateMarkdown" value="target.value")
autoExpand=".gh-koenig-editor"}}
{{else}}
{{renderedMarkdown}}
{{/if}}
{{/koenig-card}}