fix: 以字符串注册 editor 实例

This commit is contained in:
力皓 2021-03-12 11:01:04 +08:00
parent a4f3563000
commit b9c5b3a0fd

View File

@ -23,6 +23,7 @@ registerDefaults();
const editor = new Editor();
globalContext.register(editor, Editor);
globalContext.register(editor, 'editor');
const skeleton = new Skeleton(editor);
editor.set(Skeleton, skeleton);