Skip to content

Commit f507c72

Browse files
fix: display layout by default (#959)
1 parent c766025 commit f507c72

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

blocks/canvas/ew-editor-wysiwyg/ew-editor-wysiwyg.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export class EwEditorWysiwyg extends LitElement {
4646
static properties = {
4747
ctx: { type: Object },
4848
_cookieReady: { state: true },
49-
_loading: { state: true },
5049
};
5150

5251
connectedCallback() {
@@ -98,10 +97,8 @@ export class EwEditorWysiwyg extends LitElement {
9897

9998
_syncCanvasVisibility() {
10099
const view = this._canvasActiveView ?? 'layout';
101-
const portReady = this.hasAttribute(WYSIWYG_PORT_READY_ATTR);
102100
const showWysiwyg = view === 'layout' || view === 'split';
103101
this.hidden = !showWysiwyg;
104-
this._loading = showWysiwyg && !portReady;
105102
hideSelectionToolbar();
106103
}
107104

@@ -223,7 +220,7 @@ export class EwEditorWysiwyg extends LitElement {
223220
`;
224221
}
225222
return html`
226-
<div class="ew-editor-wysiwyg-surface" ?hidden=${this._loading}>
223+
<div class="ew-editor-wysiwyg-surface">
227224
${body}
228225
</div>
229226
`;

0 commit comments

Comments
 (0)