diff --git a/simple-mind-map/index.js b/simple-mind-map/index.js index 946fc500..e1b3fca7 100644 --- a/simple-mind-map/index.js +++ b/simple-mind-map/index.js @@ -489,6 +489,9 @@ class MindMap { this.execCommand('CLEAR_ACTIVE_NODE') } this.opt.readonly = isReadonly + if (!isReadonly) { + this.command.originAddHistory() + } this.emit('mode_change', mode) }