Fix Load Editor
This commit is contained in:
parent
95769f4718
commit
6ee4eb2986
1 changed files with 6 additions and 2 deletions
|
@ -135,11 +135,15 @@
|
|||
* ReviveEditorState -> SetEditor -> SetHistory
|
||||
* @param editorState
|
||||
*/
|
||||
public LoadEditor(editorState: IEditorState) {
|
||||
public LoadEditor(editorState: IEditorState) {
|
||||
this.ReviveEditorState(editorState, (state) => {
|
||||
this.SetEditor(state, (currentState) => {
|
||||
setTimeout(() => {
|
||||
this.app.Editor.SetHistory({ history: state.history, historyCurrentStep: state.historyCurrentStep });
|
||||
this.app.App.SetAppState(2, () => {
|
||||
setTimeout(() => {
|
||||
this.app.Editor.SetHistory({ history: state.history, historyCurrentStep: state.historyCurrentStep });
|
||||
}, 200);
|
||||
});
|
||||
}, 200);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue