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

Added darkMode passthrough to lexical editor

closes https://github.com/TryGhost/Team/issues/2753

- dark mode styles are being added to our Lexical-based Koenig editor, this lets us test them inside of Admin
This commit is contained in:
Kevin Ansfield 2023-03-16 18:55:44 +00:00
parent d04b2e04d6
commit 6760bc1bb0
No known key found for this signature in database

View file

@ -120,6 +120,7 @@ const KoenigEditor = (props) => {
export default class KoenigLexicalEditor extends Component {
@service ajax;
@service feature;
@inject config;
@ -354,6 +355,7 @@ export default class KoenigLexicalEditor extends Component {
onChange={this.args.onChange}
registerAPI={this.args.registerAPI}
cursorDidExitAtTop={this.args.cursorDidExitAtTop}
darkMode={this.feature.nightShift}
/>
</KoenigComposer>
</Suspense>