From e86e655cc1f42dd28e550499b5f5308772b0d4f7 Mon Sep 17 00:00:00 2001 From: taggon Date: Fri, 10 Dec 2010 08:05:35 +0000 Subject: [PATCH] =?UTF-8?q?#19318777=20IE=20=EC=BB=A4=EC=84=9C=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95=20(Workaround)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7973 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/skins/xeed/js/xeed.js | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/modules/editor/skins/xeed/js/xeed.js b/modules/editor/skins/xeed/js/xeed.js index 77d258985..3f132dd13 100644 --- a/modules/editor/skins/xeed/js/xeed.js +++ b/modules/editor/skins/xeed/js/xeed.js @@ -96,6 +96,21 @@ Xeed = xe.createApp('Xeed', { } }); + // focusing workaround + if ($.browser.opera || $.browser.msie) { + this.$richedit.parent() + .mouseover(function(){ + var $box = $(this), $rich = self.$richedit; + + if ($rich.outerHeight() < $box.height()) { + $rich + .height($box.height()-parseInt($rich.css('padding-top'))-parseInt($rich.css('padding-bottom'))) + .mouseout(function(){ $rich.css('height', '') }) + .focus(function(){ $rich.css('height', '') }); + } + }); + } + // button hover event this.$toolbar .delegate('li.ti>button', 'mouseover', function(){ $(this[_pn_]).addClass('hover') }) @@ -406,10 +421,6 @@ Xeed = xe.createApp('Xeed', { if (!$.browser.msie && !this.$richedit.html()) this.cast('SET_CONTENT', ['
']); this.$richedit.focus(); - - sel = this.getEmptySelection(); - sel.selectNodeContents(this.$richedit[0]); - sel.select(); }, /**