Skip to content

Commit da1450e

Browse files
liujupingJackLian
authored andcommitted
fix: fix the problem of white screen in custom initialization method
1 parent c3ce042 commit da1450e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/editor-skeleton/src/layouts/workbench.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ body {
170170
}
171171

172172
.lc-workbench {
173+
height: 100%;
174+
display: flex;
175+
flex-direction: column;
176+
background-color: #edeff3;
177+
173178
&.engine-main {
174179
height: 100%;
175180
display: flex;

packages/engine/src/engine-core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ let engineContainer: HTMLElement;
156156
export const version = VERSION_PLACEHOLDER;
157157
engineConfig.set('ENGINE_VERSION', version);
158158

159+
registryInnerPlugin(designer, editor, plugins);
160+
159161
export async function init(
160162
container?: HTMLElement,
161163
options?: IPublicTypeEngineOptions,
@@ -179,8 +181,6 @@ export async function init(
179181
}
180182
engineConfig.setEngineOptions(engineOptions as any);
181183

182-
await registryInnerPlugin(designer, editor, plugins);
183-
184184
await plugins.init(pluginPreference as any);
185185

186186
const { Workbench } = common.skeletonCabin;

0 commit comments

Comments
 (0)