mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 22:59:57 +09:00
에디터를 일단 미리 작동을 시도한 후 이상이 있으면 focus가 주어질때 작동되도록 코드 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2702 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
493733de8f
commit
6336292f2e
1 changed files with 15 additions and 6 deletions
|
|
@ -176,14 +176,23 @@ function editorStart(editor_sequence, primary_key, content_key, resizable, edito
|
|||
|
||||
// editor_mode를 기본으로 설정
|
||||
editor_mode[editor_sequence] = null;
|
||||
editor_is_started[editor_sequence] = false;
|
||||
|
||||
// 에디터를 시작 시킴 (오류 발생시 에디터에 focus에 올때 에디터 시작하도록 변경)
|
||||
|
||||
try {
|
||||
editorSetDesignMode(iframe_obj, contentDocument, content, fo_obj, editor_sequence);
|
||||
editor_is_started[editor_sequence] = true;
|
||||
} catch(e) {
|
||||
editor_start_func[editor_sequence] = function() { editorSetDesignMode(iframe_obj, contentDocument, content, fo_obj, editor_sequence); }
|
||||
editor_is_started[editor_sequence] = false;
|
||||
|
||||
// iframe에 focus가 될때 에디터 모드로 전환하도록 이벤트 지정
|
||||
if(xIE4Up) xAddEventListener(iframe_obj, "focus", editor_start_func[editor_sequence] );
|
||||
else xAddEventListener(iframe_obj.contentWindow, "focus", editor_start_func[editor_sequence] );
|
||||
alert('실패');
|
||||
}
|
||||
|
||||
xAddEventListener(document,'mouseup',editorEventCheck);
|
||||
|
||||
// iframe에 focus가 될때 에디터 모드로 전환하도록 이벤트 지정
|
||||
editor_start_func[editor_sequence] = function() { editorSetDesignMode(iframe_obj, contentDocument, content, fo_obj, editor_sequence); }
|
||||
if(xIE4Up) xAddEventListener(iframe_obj, "focus", editor_start_func[editor_sequence] );
|
||||
else xAddEventListener(iframe_obj.contentWindow, "focus", editor_start_func[editor_sequence] );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue