mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-08 20:22:53 +03:00
2dc916299b
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
10 lines
303 B
Handlebars
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}}
|
|
> |