mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 22:58:15 +00:00
fix: 以字符串注册 editor 实例
This commit is contained in:
parent
a4f3563000
commit
b9c5b3a0fd
@ -23,6 +23,7 @@ registerDefaults();
|
|||||||
|
|
||||||
const editor = new Editor();
|
const editor = new Editor();
|
||||||
globalContext.register(editor, Editor);
|
globalContext.register(editor, Editor);
|
||||||
|
globalContext.register(editor, 'editor');
|
||||||
|
|
||||||
const skeleton = new Skeleton(editor);
|
const skeleton = new Skeleton(editor);
|
||||||
editor.set(Skeleton, skeleton);
|
editor.set(Skeleton, skeleton);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user