mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
#207 에디터가 윈도우 SP1 (윈도우 NT or XP SP1)에서 iframe document에 대해 권한을 가지지 못하는 문제가 있어서 일단 해당 기능을 포기하고 에디팅은 가능하도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2690 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
636be348ba
commit
89b9a83e60
1 changed files with 11 additions and 5 deletions
|
|
@ -198,12 +198,18 @@ function editorSetDesignMode(iframe_obj, contentDocument, content, fo_obj, edito
|
|||
* 더블클릭이나 키눌림등의 각종 이벤트에 대해 listener 추가
|
||||
**/
|
||||
// 작성시 필요한 이벤트 체크
|
||||
if(xIE4Up) xAddEventListener(contentDocument, 'keydown',editorKeyPress);
|
||||
else xAddEventListener(contentDocument, 'keypress',editorKeyPress);
|
||||
xAddEventListener(contentDocument,'mousedown',editorHideObject);
|
||||
// 이 이벤트의 경우 윈도우 sp1 (NT or xp sp1) 에서 contentDocument에 대한 권한이 없기에 try 문으로 감싸서
|
||||
// 에러를 무시하도록 해야 함.
|
||||
try {
|
||||
if(xIE4Up) xAddEventListener(contentDocument, 'keydown',editorKeyPress);
|
||||
else xAddEventListener(contentDocument, 'keypress',editorKeyPress);
|
||||
xAddEventListener(contentDocument,'mousedown',editorHideObject);
|
||||
|
||||
// 위젯 감시를 위한 더블클릭 이벤트 걸기 (오페라에 대한 처리는 차후에.. 뭔가 이상함)
|
||||
xAddEventListener(contentDocument,'dblclick',editorSearchComponent);
|
||||
} catch(e) {
|
||||
}
|
||||
|
||||
// 위젯 감시를 위한 더블클릭 이벤트 걸기 (오페라에 대한 처리는 차후에.. 뭔가 이상함)
|
||||
xAddEventListener(contentDocument,'dblclick',editorSearchComponent);
|
||||
xAddEventListener(document,'dblclick',editorSearchComponent);
|
||||
xAddEventListener(document,'mouseup',editorEventCheck);
|
||||
xAddEventListener(document,'mousedown',editorHideObject);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue