mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:29:24 +08:00
amis-saas-8146 1. 子编辑器 subEditor 不再重复设置 editorStore; 2. 增加 ListItem 和 ButtonToolbar 属性国际化
Change-Id: I724fcd3569afc57a8fbf010a1a366c998ce1aeeb
This commit is contained in:
parent
2cc849e55c
commit
509bcdc6de
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user