Skip to content

Commit

Permalink
Added darkMode passthrough to lexical editor
Browse files Browse the repository at this point in the history
closes TryGhost/Product#2753

- dark mode styles are being added to our Lexical-based Koenig editor, this lets us test them inside of Admin
  • Loading branch information
kevinansfield committed Mar 16, 2023
1 parent d04b2e0 commit 6760bc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ghost/admin/app/components/koenig-lexical-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const KoenigEditor = (props) => {

export default class KoenigLexicalEditor extends Component {
@service ajax;
@service feature;

@inject config;

Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 6760bc1

Please sign in to comment.