summaryrefslogtreecommitdiffstats
path: root/askbot/media/js/post.js
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/media/js/post.js')
-rw-r--r--askbot/media/js/post.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/askbot/media/js/post.js b/askbot/media/js/post.js
index bd1a3fc7..a4f74359 100644
--- a/askbot/media/js/post.js
+++ b/askbot/media/js/post.js
@@ -2774,7 +2774,12 @@ TinyMCE.prototype.setHighlight = function() {};
TinyMCE.prototype.putCursorAtEnd = function() {};
TinyMCE.prototype.focus = function() {
- tinymce.execCommand('mceFocus', false, this._id);
+ var editorId = this._id;
+ setTimeout(function() {
+ tinymce.execCommand('mceFocus', false, editorId);
+ },
+ 100
+ );
//@todo: make this general to all editors
var winH = $(window).height();