mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 09:09:59 +09:00
#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:
parent
889514776f
commit
ad3dc29efd
1 changed files with 472 additions and 476 deletions
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue