From ed9c3505ad0063f23c33967cbf02d7eac0777329 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Wed, 4 Aug 2021 14:09:30 +0200 Subject: [PATCH] Check default running --- src/editor/model/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/model/Editor.js b/src/editor/model/Editor.js index 3e36d2cb3..66fbbdef2 100644 --- a/src/editor/model/Editor.js +++ b/src/editor/model/Editor.js @@ -701,7 +701,7 @@ export default Backbone.Model.extend({ stopDefault(opts = {}) { const commands = this.get('Commands'); const command = commands.get(this.config.defaultCommand); - if (!command) return; + if (!command || !this.defaultRunning) return; command.stop(this, this, opts); this.defaultRunning = 0; },