From 7abfe41ab792e93b94e186f9ece4a5fd3b58a3e4 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sun, 24 Apr 2016 05:12:38 -0400
Subject: [PATCH] Fix bug where getting HTML editor content could steal focus from other form controls (#5223)

---
 CHANGELOG            |    1 +
 program/js/editor.js |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index f4e8647..3b401b3 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -3,6 +3,7 @@
 
 - Enigma: Added enigma_debug option
 - Fix message list multi-select/deselect issue (#5219)
+- Fix bug where getting HTML editor content could steal focus from other form controls (#5223)
 
 RELEASE 1.2-rc
 --------------
diff --git a/program/js/editor.js b/program/js/editor.js
index 17eee6b..1702e21 100644
--- a/program/js/editor.js
+++ b/program/js/editor.js
@@ -450,7 +450,6 @@
 
     // get selected text from tinymce editor
     if (ed) {
-      ed.getWin().focus(); // correct focus in IE & Chrome
       if (args.selection)
         text = ed.selection.getContent({format: args.format});
 

--
Gitblit v1.9.1