0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Koenig - Remove caption from HTML card

refs https://github.com/TryGhost/Ghost/issues/9505
This commit is contained in:
Kevin Ansfield 2018-04-25 12:09:20 +01:00
parent 761e841875
commit 9e1e6ca0c9
2 changed files with 0 additions and 16 deletions

View file

@ -47,10 +47,6 @@ export default Component.extend({
this._updatePayloadAttr('html', html);
},
updateCaption(caption) {
this._updatePayloadAttr('caption', caption);
},
leaveEditMode() {
if (isBlank(this.get('payload.html'))) {
// afterRender is required to avoid double modification of `isSelected`

View file

@ -14,20 +14,8 @@
lineWrapping=true
update=(action "updateHtml")
}}
<input
value={{payload.caption}}
type="text"
class="miw-100 tc bn form-text"
oninput={{action "updateCaption" value="target.value"}}
placeholder="Type caption for embed (optional)">
{{else}}
{{{payload.html}}}
{{#if payload.caption}}
<p class={{kg-style "figcaption"}}>{{{payload.caption}}}</p>
{{/if}}
<div class="koenig-card-click-overlay"></div>
{{/if}}
{{/koenig-card}}