summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-17 22:09:33 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-17 22:09:33 -0400
commite9c34238f14db8d6d0acd97815950ae6ce9759b7 (patch)
tree00b0f1e804f9ef71ac4ab09beeb239c92ccb21bf
parentef0eca9da883709f776a0a87bedded4d50be65d5 (diff)
downloadaskbot-e9c34238f14db8d6d0acd97815950ae6ce9759b7.tar.gz
askbot-e9c34238f14db8d6d0acd97815950ae6ce9759b7.tar.bz2
askbot-e9c34238f14db8d6d0acd97815950ae6ce9759b7.zip
fixed TinyMCE focus behavior
-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();