Fixed dark mode for lexical (#16888)

refs TryGhost/Team#3327
This commit is contained in:
Elena Baidakova 2023-05-29 17:20:25 +04:00 committed by GitHub
parent 08fc96a077
commit 254de144e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -480,7 +480,7 @@ export default class KoenigLexicalEditor extends Component {
const multiplayerUsername = this.session.user.name;
return (
<div className={['koenig-react-editor', this.args.className].filter(Boolean).join(' ')}>
<div className={['koenig-react-editor', 'koenig-lexical', this.args.className].filter(Boolean).join(' ')}>
<ErrorHandler>
<Suspense fallback={<p className="koenig-react-editor-loading">Loading editor...</p>}>
<KoenigComposer
@ -492,6 +492,7 @@ export default class KoenigLexicalEditor extends Component {
multiplayerDocId={multiplayerDocId}
multiplayerEndpoint={multiplayerEndpoint}
onError={this.onError}
darkMode={this.feature.nightShift}
>
<KoenigEditor
cursorDidExitAtTop={this.args.cursorDidExitAtTop}