From 56042c0abb35448d7a70c7e655bfefedf60c62e4 Mon Sep 17 00:00:00 2001 From: taggon Date: Mon, 27 Apr 2009 09:06:04 +0000 Subject: [PATCH] =?UTF-8?q?=ED=99=95=EC=9E=A5=20=EC=BB=B4=ED=8F=AC?= =?UTF-8?q?=EB=84=8C=ED=8A=B8=20=EC=A7=80=EC=9B=90=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?:=20div=20=EC=A7=80=EC=9B=90,=20dblclick=20=EA=B0=9C=EC=84=A0?= 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@6204 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- .../skins/xpresseditor/js/Xpress_Editor.js | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/modules/editor/skins/xpresseditor/js/Xpress_Editor.js b/modules/editor/skins/xpresseditor/js/Xpress_Editor.js index 9c3b2afa7..7fef2b4af 100644 --- a/modules/editor/skins/xpresseditor/js/Xpress_Editor.js +++ b/modules/editor/skins/xpresseditor/js/Xpress_Editor.js @@ -5667,19 +5667,19 @@ xe.XE_Extension = jQuery.Class({ var doc = this.oApp.getWYSIWYGDocument(); var seq = this.seq; var fn = function(){ - var img = jQuery(this); - var comp = img.attr('editor_component'); + var obj = jQuery(this); + var comp = obj.attr('editor_component'); if (comp && jQuery.isFunction(openComponent)) { - editorPrevNode = img.get(0); + editorPrevNode = obj.get(0); openComponent(comp, seq); } }; - jQuery('img[editor_component]', doc).each(function(){ - var img = jQuery(this); - if (!img.attr('xe_handled')) { - img.attr('xe_handled', 'yes').dblclick(fn); + jQuery('img[editor_component],div[editor_component]', doc).each(function(){ + var obj = jQuery(this); + if (!obj.attr('xe_handled')) { + obj.attr('xe_handled', 'yes').dblclick(fn); } }); }, @@ -5695,19 +5695,23 @@ xe.XE_Extension = jQuery.Class({ }, $ON_CHANGE_EDITING_MODE : function(mode) { - this._addEvent(); + var self = this; + setTimeout(function(){ self._addEvent(); }, 100); }, $ON_PASTE_HTML : function() { - this._addEvent(); + var self = this; + setTimeout(function(){ self._addEvent(); }, 100); }, $ON_LOAD_IR_FIELD : function() { - this._addEvent(); + var self = this; + setTimeout(function(){ self._addEvent(); }, 100); }, $ON_SET_IR : function() { - this._addEvent(); + var self = this; + setTimeout(function(){ self._addEvent(); }, 100); } }); /**