@tryghost/koenig-lexical 0.0.79 → 0.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104676,10 +104676,14 @@ class IO extends WFe {
104676
104676
  _e(this, "__titleEditorInitialState");
104677
104677
  _e(this, "__descriptionEditor");
104678
104678
  _e(this, "__descriptionEditorInitialState");
104679
- this.__titleEditor = t.titleEditor || z.createEditor({ nodes: ql }), this.__titleEditorInitialState = t.titleEditorInitialState, this.__titleEditorInitialState || (this.__titleEditorInitialState = $g({
104680
- editor: z.createEditor({ nodes: ql }),
104681
- initialHtml: t.title
104682
- })), this.__descriptionEditor = t.descriptionEditor || z.createEditor({ nodes: Mu }), this.__descriptionEditorInitialState = t.descriptionEditorInitialState, this.__descriptionEditorInitialState || (this.__descriptionEditorInitialState = $g({
104679
+ if (this.__titleEditor = t.titleEditor || z.createEditor({ nodes: ql }), this.__titleEditorInitialState = t.titleEditorInitialState, !this.__titleEditorInitialState) {
104680
+ const r = t.title ? `<p>${t.title}</p>` : null;
104681
+ this.__titleEditorInitialState = $g({
104682
+ editor: z.createEditor({ nodes: ql }),
104683
+ initialHtml: r
104684
+ });
104685
+ }
104686
+ this.__descriptionEditor = t.descriptionEditor || z.createEditor({ nodes: Mu }), this.__descriptionEditorInitialState = t.descriptionEditorInitialState, this.__descriptionEditorInitialState || (this.__descriptionEditorInitialState = $g({
104683
104687
  editor: z.createEditor({ nodes: Mu }),
104684
104688
  initialHtml: t.description
104685
104689
  }));