#18062851 * IE에서 에디터로 포커스가 이동하는 문제 수정

* FCKeditor 참조함. FCKEditingArea.MakeEditable()

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6525 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2009-06-11 14:48:50 +00:00
parent 889514776f
commit ad3dc29efd

View file

@ -3323,13 +3323,9 @@ xe.XE_EditingArea_WYSIWYG = jQuery.Class({
_enableWYSIWYG : function(){ _enableWYSIWYG : function(){
if (jQuery.browser.msie){ if (jQuery.browser.msie){
var fake = jQuery('<input type="text" style="position:absolute;width:1px;height:1px;left:-9px">'); this.doc.body.disabled = true;
jQuery(document.body).prepend(fake);
fake.focus();
this.doc.body.contentEditable = true; this.doc.body.contentEditable = true;
this.doc.body.removeAttribute('disabled');
setTimeout(function(){fake.remove()}, 100);
} else { } else {
this.doc.designMode = "on"; this.doc.designMode = "on";
} }