From 89b9a83e60ab3d1c279586b65f2406c65f42d178 Mon Sep 17 00:00:00 2001 From: zero Date: Mon, 8 Oct 2007 09:35:48 +0000 Subject: [PATCH] =?UTF-8?q?#207=20=EC=97=90=EB=94=94=ED=84=B0=EA=B0=80=20?= =?UTF-8?q?=EC=9C=88=EB=8F=84=EC=9A=B0=20SP1=20(=EC=9C=88=EB=8F=84?= =?UTF-8?q?=EC=9A=B0=20NT=20or=20XP=20SP1)=EC=97=90=EC=84=9C=20iframe=20do?= =?UTF-8?q?cument=EC=97=90=20=EB=8C=80=ED=95=B4=20=EA=B6=8C=ED=95=9C?= =?UTF-8?q?=EC=9D=84=20=EA=B0=80=EC=A7=80=EC=A7=80=20=EB=AA=BB=ED=95=98?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C=EA=B0=80=20=EC=9E=88=EC=96=B4?= =?UTF-8?q?=EC=84=9C=20=EC=9D=BC=EB=8B=A8=20=ED=95=B4=EB=8B=B9=20=EA=B8=B0?= =?UTF-8?q?=EB=8A=A5=EC=9D=84=20=ED=8F=AC=EA=B8=B0=ED=95=98=EA=B3=A0=20?= =?UTF-8?q?=EC=97=90=EB=94=94=ED=8C=85=EC=9D=80=20=EA=B0=80=EB=8A=A5?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= 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@2690 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/tpl/js/editor.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/modules/editor/tpl/js/editor.js b/modules/editor/tpl/js/editor.js index 76ecbdf47..a75a3931e 100755 --- a/modules/editor/tpl/js/editor.js +++ b/modules/editor/tpl/js/editor.js @@ -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);