From 509bcdc6de484e34f94975218ebe050298711281 Mon Sep 17 00:00:00 2001 From: wangyuzhen01 Date: Sun, 29 Jan 2023 09:33:02 +0800 Subject: [PATCH] =?UTF-8?q?amis-saas-8146=201.=20=E5=AD=90=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8=20subEditor=20=E4=B8=8D=E5=86=8D=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E8=AE=BE=E7=BD=AE=20editorStore;=202.=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20ListItem=20=E5=92=8C=20ButtonToolbar=20=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I724fcd3569afc57a8fbf010a1a366c998ce1aeeb --- packages/amis-editor-core/src/component/Editor.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/amis-editor-core/src/component/Editor.tsx b/packages/amis-editor-core/src/component/Editor.tsx index 7d0da9116..21feb62b2 100644 --- a/packages/amis-editor-core/src/component/Editor.tsx +++ b/packages/amis-editor-core/src/component/Editor.tsx @@ -152,7 +152,10 @@ export default class Editor extends Component { } this.manager = new EditorManager(config, this.store); - (window as any).editorStore = this.store; + // 子编辑器不再重新设置 editorStore + if (!(props.isSubEditor && (window as any).editorStore)) { + (window as any).editorStore = this.store; + } // 添加快捷键事件 document.addEventListener('keydown', this.handleKeyDown);