Ghost/ghost/admin/lib/koenig-editor/addon/components/koenig-caption-input.hbs

11 lines
416 B
Handlebars
Raw Normal View History

<KoenigBasicHtmlInput
@html={{this.caption}}
@placeholder={{if this.isFocused "" this.placeholder}}
@class="miw-100 tc bn form-text bg-transparent pr8 pl8"
@name="caption"
@onChange={{action this.update}}
@onFocus={{action (mut this.isFocused) true}}
@onBlur={{action (mut this.isFocused) false}}
@onNewline={{action "handleEnter"}}
@didCreateEditor={{action "registerEditor"}}
/>