Skip to content

Commit

Permalink
Revert "🐛 Fixed a bug causing new drafts to only save if the title is…
Browse files Browse the repository at this point in the history
… populated (#20769)"

This reverts commit 93cbb94.
  • Loading branch information
ronaldlangeveld committed Aug 19, 2024
1 parent da57bcd commit efeab5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ghost/admin/app/components/koenig-lexical-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ export default class KoenigLexicalEditor extends Component {

const KGEditorComponent = ({isInitInstance}) => {
return (
<div style={isInitInstance ? {visibility: 'hidden', position: 'absolute'} : {}}>
<div data-secondary-instance={isInitInstance ? true : false} style={isInitInstance ? {width: 0, height: 0, overflow: 'hidden'} : {}}>
<KoenigComposer
editorResource={this.editorResource}
cardConfig={cardConfig}
Expand Down Expand Up @@ -714,7 +714,7 @@ export default class KoenigLexicalEditor extends Component {
<ErrorHandler config={this.config}>
<Suspense fallback={<p className="koenig-react-editor-loading">Loading editor...</p>}>
<KGEditorComponent />
<KGEditorComponent isInitInstance={true} />
<KGEditorComponent isInitInstance={true} />
</Suspense>
</ErrorHandler>
</div>
Expand Down

0 comments on commit efeab5f

Please sign in to comment.