Ghost/ghost/admin/lib/koenig-editor/addon/templates/components/koenig-caption-input.hbs
Kevin Ansfield 2dc916299b Koenig - Extract card caption input into component
refs https://github.com/TryGhost/Ghost/issues/9623
- add new `{{koenig-caption-input}}` component
- yield koenig-caption-input instance from the `{{koenig-card}}` component
- remove duplicated caption logic from image and embed cards
- remove placeholder when caption input has focus
2018-06-12 18:10:23 +01:00

10 lines
303 B
Handlebars

<input
placeholder={{if isFocused "" placeholder}}
value={{caption}}
type="text"
class="miw-100 tc bn form-text bg-transparent"
name="caption"
oninput={{action update value="target.value"}}
onfocus={{action (mut isFocused) true}}
onblur={{action (mut isFocused) false}}
>