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

Moved the callout editor to KoenigBasicHtmlInput

refs https://github.com/TryGhost/Team/issues/1206

- The KoenigBasicHtmlTextarea wasn't an option as the `Enter` key was binded to a line return. And we want to use the `Enter` key to switch to the next paragraph outside of the callout card.
This commit is contained in:
Thibaut Patel 2021-11-18 16:12:39 +01:00
parent e0a68a94f8
commit ca70c5e0dc

View file

@ -25,7 +25,7 @@
{{#if @payload.calloutEmoji}}
<div class="kg-callout-emoji {{if this.isPickerVisible "kg-emoji-picker-active"}}" {{on "click" this.changeEmoji}}>{{@payload.calloutEmoji}}</div>
{{/if}}
<KoenigBasicHtmlTextarea
<KoenigBasicHtmlInput
@html={{@payload.calloutText}}
@placeholder="Callout text..."
@autofocus={{true}}
@ -34,6 +34,7 @@
@onFocus={{fn (mut this.isFocused) true}}
@onBlur={{fn (mut this.isFocused) false}}
@didCreateEditor={{this.registerEditor}}
@onNewline={{this.args.addParagraphAfterCard}}
/>
<KoenigSettingsPanel>
<div class="kg-settings-panel-control kg-settings-panel-control-horizontal">