amis-saas-8146 1. 子编辑器 subEditor 不再重复设置 editorStore; 2. 增加 ListItem 和 ButtonToolbar 属性国际化

Change-Id: I724fcd3569afc57a8fbf010a1a366c998ce1aeeb
This commit is contained in:
wangyuzhen01 2023-01-29 09:33:02 +08:00
parent 2cc849e55c
commit 509bcdc6de

View File

@ -152,7 +152,10 @@ export default class Editor extends Component<EditorProps> {
}
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);