From e9c34238f14db8d6d0acd97815950ae6ce9759b7 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Wed, 17 Apr 2013 22:09:33 -0400 Subject: fixed TinyMCE focus behavior --- askbot/media/js/post.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3-1-g7c22