mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
4636b4be0d
no issue - copy Spirit styles over (eventually these will live in an addon) - update `ember-cli-build` to output a separate CSS file for Spirit - update `asset-delivery` addon to output Spirit CSS link - add `{{kg-style}}` helper for Spirit class names - update `{{koenig-card}}` and the `{{koenig-card-markdown/html}}` components to use Spirit class names and markup - replace markdown icon with new version from Spirit
20 lines
521 B
Handlebars
20 lines
521 B
Handlebars
{{#koenig-card
|
|
icon="koenig/markdown"
|
|
class=(kg-style "container-card")
|
|
isSelected=isSelected
|
|
isEditing=isEditing
|
|
onEnterEdit=(action "enterEditMode")
|
|
selectCard=(action selectCard)
|
|
editCard=(action editCard)
|
|
}}
|
|
{{#if isEditing}}
|
|
{{gh-textarea
|
|
class="koenig-card-markdown"
|
|
value=payload.markdown
|
|
update=(action "updateMarkdown")
|
|
autoExpand=".gh-koenig-editor"}}
|
|
{{else}}
|
|
{{renderedMarkdown}}
|
|
{{/if}}
|
|
{{/koenig-card}}
|