Browse Source

Check default running

pull/3671/head
Artur Arseniev 5 years ago
parent
commit
ed9c3505ad
  1. 2
      src/editor/model/Editor.js

2
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;
},

Loading…
Cancel
Save