From 3628667ea8b27d813e98f4d1a8853ace045f28d2 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Wed, 26 Aug 2020 01:31:02 +0200 Subject: [PATCH] Fix editor.load bug with undo manager. Closes #2921 --- src/editor/model/Editor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/editor/model/Editor.js b/src/editor/model/Editor.js index 980d928da..bb5d04373 100644 --- a/src/editor/model/Editor.js +++ b/src/editor/model/Editor.js @@ -537,7 +537,10 @@ export default Backbone.Model.extend({ */ load(clb = null) { this.getCacheLoad(1, res => { - this.get('storables').forEach(module => module.load(res)); + this.get('storables').forEach(module => { + module.load(res); + module.postLoad && module.postLoad(this); + }); clb && clb(res); }); },