mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
56490b7a5f
refs https://github.com/TryGhost/Ghost/issues/9311 - adds an overlay element to the embed card so that clicks do not interact with any embedded iframes so that you can lazy click to enter edit mode
19 lines
463 B
Handlebars
19 lines
463 B
Handlebars
{{#koenig-card
|
|
icon="koenig/embed"
|
|
isSelected=isSelected
|
|
isEditing=isEditing
|
|
selectCard=(action selectCard)
|
|
editCard=(action editCard)
|
|
}}
|
|
{{#if isEditing}}
|
|
{{gh-cm-editor payload.html
|
|
class="koenig-card-html--editor"
|
|
autofocus=true
|
|
update=(action "updateHtml")
|
|
}}
|
|
{{else}}
|
|
{{{payload.html}}}
|
|
<div class="koenig-card-click-overlay"></div>
|
|
{{/if}}
|
|
{{/koenig-card}}
|