From cc2fa97e388ff4b09e22f62a366c0f029cce2ed0 Mon Sep 17 00:00:00 2001 From: taggon Date: Mon, 8 Feb 2010 07:40:29 +0000 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=EC=9D=98=20?= =?UTF-8?q?=EC=A0=88=EB=8C=80=EA=B2=BD=EB=A1=9C(http://~)=EB=A5=BC=20XE=20?= =?UTF-8?q?=EC=83=81=EB=8C=80=EA=B2=BD=EB=A1=9C=EB=A1=9C=20=EB=B0=94?= =?UTF-8?q?=EA=BE=B8=EB=8A=94=20=EC=BD=94=EB=93=9C=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@7294 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/skins/xpresseditor/js/xe_interface.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/editor/skins/xpresseditor/js/xe_interface.js b/modules/editor/skins/xpresseditor/js/xe_interface.js index 750f68d68..1a367bbda 100644 --- a/modules/editor/skins/xpresseditor/js/xe_interface.js +++ b/modules/editor/skins/xpresseditor/js/xe_interface.js @@ -249,18 +249,18 @@ xe.XE_GET_WYSYWYG_CONTENT = jQuery.Class({ name : "XE_GET_WYSYWYG_CONTENT", $ON_MSG_APP_READY : function() { - this.oApp.addConverter("IR_TO_WYSIWYG", this.TO_WYSIWYG_SET); - this.oApp.addConverter("IR_TO_HTMLSrc", this.IR_TO_HTMLSrc); + this.oApp.addConverter("IR_TO_WYSIWYG", this.replaceXE2HTTP); + this.oApp.addConverter("WYSIWYG_TO_IR", this.replaceHTTP2XE); }, - TO_WYSIWYG_SET : function(content) { + replaceXE2HTTP : function(content) { // src, href, url의 XE 상대경로를 http로 시작하는 full path로 변경 content = editorReplacePath(content); return content; }, - IR_TO_HTMLSrc : function(content) { + replaceHTTP2XE : function(content) { // src, href, url에서 http로 시작하는 full path를 XE 상대경로로 변경 content = content.replace(/(src=|href=|url\()("|\')*([^"\'\)]+)("|\'|\))*(\s|>|\))*/ig, function(m0,m1,m2,m3,m4,m5) { var uriReg = new RegExp('^'+request_uri.replace('\/','\\/'),'ig');