From 1e39caff732d408ff92a93ff83816e1000cc5b44 Mon Sep 17 00:00:00 2001 From: haneul Date: Thu, 28 Jan 2010 07:04:06 +0000 Subject: [PATCH] #18642034 : legacy page edit support (before 1.2.5) git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7256 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/widget/tpl/js/widget.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/widget/tpl/js/widget.js b/modules/widget/tpl/js/widget.js index f2dc0b58a..ad9430a73 100644 --- a/modules/widget/tpl/js/widget.js +++ b/modules/widget/tpl/js/widget.js @@ -235,9 +235,16 @@ function doSyncPageContent() { var obj = sel_obj.firstChild; while(obj && obj.className != "widgetContent") obj = obj.nextSibling; if(obj && obj.className == "widgetContent") { - if(!fo_obj.content.value) { - var content = Base64.decode(xInnerHtml(obj)); - xGetElementById("content_fo").content.value = content; + if(!fo_obj.document_srl || fo_obj.document_srl.value == 0) { + try { + var content = Base64.decode(xInnerHtml(obj)); + content = editorReplacePath(content); + xGetElementById("content_fo").content.value = content; + xe.Editors["1"].exec("SET_IR", [content]); + } + catch(e) + { + } } } }