From 7e017a0aaead052e955ceecaab44f4ad96272793 Mon Sep 17 00:00:00 2001 From: "gabri.gcl" Date: Wed, 29 Nov 2017 14:17:29 -0300 Subject: [PATCH] Problem event stop:preview not firing solved --- src/commands/view/Preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/view/Preview.js b/src/commands/view/Preview.js index ee51f80ff..008283a64 100644 --- a/src/commands/view/Preview.js +++ b/src/commands/view/Preview.js @@ -28,7 +28,7 @@ module.exports = { this.helper.className = pfx + 'off-prv fa fa-eye-slash'; editorEl.appendChild(this.helper); this.helper.onclick = () => { - that.stop(editor); + editor.stopCommand('preview'); }; } this.helper.style.display = 'inline-block';