mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
b3257cb7ea
refs TryGhost/Team#3008 --- <!-- Leave the line below if you'd like GitHub Copilot to generate a summary from your commit --> <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at f785fd8</samp> This change adds a new component `koenig-lexical-editor-input` that renders a React component using the `@tryghost/koenig-lexical` package, which provides a new editor for Ghost that supports rich text and markdown editing. The component can be used to edit HTML content using the Lexical editor, and syncs the HTML content with the `html` argument and the `onChangeHtml` callback. The component also handles dynamic import, loading, error, and dark mode scenarios.
6 lines
146 B
Handlebars
6 lines
146 B
Handlebars
<div {{react-render this.ReactComponent props=(hash
|
|
placeholderText=@placeholderText
|
|
html=@html
|
|
onChangeHtml=@onChangeHtml
|
|
)
|
|
}}></div> |