#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
This commit is contained in:
haneul 2010-01-28 07:04:06 +00:00
parent 3ec5f64866
commit 1e39caff73

View file

@ -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)
{
}
}
}
}