Ghost/ghost/admin/app/components/koenig-lexical-editor-input.hbs
Kevin Ansfield 0ffe4dd144 Swapped feature image caption input from mobiledoc to lexical
closes https://github.com/TryGhost/Product/issues/4015

Swapped `<KoenigBasicHtmlInput>` for `<KoenigLexicalEditorInput>`

- added support for passing `class` through to the container `<div>`
- updated caption handler to clean HTML and strip/add surrounding `<p>` as necessary
- added passthrough for `onFocus` prop
- updated styles to force font style inheritance within Koeing's `.kg-prose` class
2023-10-10 18:45:51 +01:00

10 lines
232 B
Handlebars

<div
{{react-render this.ReactComponent props=(hash
placeholderText=@placeholderText
html=@html
onChangeHtml=@onChangeHtml
onBlur=@onBlur
onFocus=@onFocus
)}}
...attributes
></div>