From 930322663960ec9cf90ccbdba56b5cf25ed22da4 Mon Sep 17 00:00:00 2001 From: misol Date: Sun, 11 Oct 2009 02:53:53 +0000 Subject: [PATCH] =?UTF-8?q?xpresseditor=20=EC=82=AC=EC=9A=A9=ED=95=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=B6=80=EB=B6=84=20=EC=A7=80?= =?UTF-8?q?=EC=9B=80,=20=EC=97=90=EB=94=94=ED=84=B0=20=EC=BB=B4=ED=8F=AC?= =?UTF-8?q?=EB=84=8C=ED=8A=B8=20=EC=84=A0=ED=83=9D=ED=95=98=EB=A9=B4=20?= =?UTF-8?q?=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20=EC=84=A0=ED=83=9D?= =?UTF-8?q?=ED=95=98=EB=8A=94=20=EB=A0=88=EC=9D=B4=EC=96=B4=20=EB=8B=AB?= =?UTF-8?q?=ED=9E=88=EA=B2=8C=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@6841 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/skins/xpresseditor/editor.html | 1 - .../skins/xpresseditor/js/Xpress_Editor.js | 27 +++++++++++++------ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/modules/editor/skins/xpresseditor/editor.html b/modules/editor/skins/xpresseditor/editor.html index c86c76a71..a9eaf1ff9 100644 --- a/modules/editor/skins/xpresseditor/editor.html +++ b/modules/editor/skins/xpresseditor/editor.html @@ -29,7 +29,6 @@ - diff --git a/modules/editor/skins/xpresseditor/js/Xpress_Editor.js b/modules/editor/skins/xpresseditor/js/Xpress_Editor.js index 69615d75f..066b26ed5 100644 --- a/modules/editor/skins/xpresseditor/js/Xpress_Editor.js +++ b/modules/editor/skins/xpresseditor/js/Xpress_Editor.js @@ -5714,18 +5714,29 @@ xe.XE_Extension = jQuery.Class({ jQuery('img,div[editor_component]', doc).each(function(){ var obj = jQuery(this); - if(this.nodeName == 'IMG' && !obj.attr('editor_component')) { - obj.attr('editor_component','image_link'); - } - if(this.last_doc != doc) { - obj.dblclick(fn); - this.last_doc = doc; - } + if(this.nodeName == 'IMG' && !obj.attr('editor_component')) { + obj.attr('editor_component','image_link'); + } + if(this.last_doc != doc) { + obj.dblclick(fn); + this.last_doc = doc; + } }); }, $ON_MSG_APP_READY : function() { - this.oApp.exec('REGISTER_UI_EVENT', ['extension', 'click', 'TOGGLE_EXTENSION_LAYER']); + var oApp = this.oApp; + oApp.exec('REGISTER_UI_EVENT', ['extension', 'click', 'TOGGLE_EXTENSION_LAYER']); + var functn = function(){ + oApp.exec("HIDE_ACTIVE_LAYER", []); + }; + jQuery('a', this.elDropdownLayer).each(function(){ + var obj = jQuery(this); + if(!obj.attr('component_onclick_event_added')) { + obj.click(functn); + obj.attr('component_onclick_event_added','Y'); + } + }); }, $ON_TOGGLE_EXTENSION_LAYER : function() {