Index: trunk/admin/editor/cmseditor/editor/dialog/fck_link/fck_link.js =================================================================== diff -u -r1415 -r1483 --- trunk/admin/editor/cmseditor/editor/dialog/fck_link/fck_link.js (.../fck_link.js) (revision 1415) +++ trunk/admin/editor/cmseditor/editor/dialog/fck_link/fck_link.js (.../fck_link.js) (revision 1483) @@ -376,25 +376,31 @@ if (GetE('txtUrl')) { tmpUrl = GetE('txtUrl').value; if (tmpUrl.length == 0 && i == 0) { - window.frames["frmInternal"].document.location.href = ServerPath + sCmsPage ; + window.frames["frmInternal"].document.location.href = ServerPath + sCmsPage+GetAdmin(); } //alert(tmpUrl+' === '+sCmsPage); if (tmpUrl.match(sCmsPage+'$')) { GetE('cmbImternalPagName').options[i].selected=1; - window.frames["frmInternal"].document.location.href = tmpUrl ; + window.frames["frmInternal"].document.location.href = tmpUrl+GetAdmin(); } } } } function ChangeInternalUrl(url) { - window.frames["frmInternal"].document.location.href = ServerPath + url; + window.frames["frmInternal"].document.location.href = ServerPath + url+GetAdmin(); //window.frames["frmInternal"].document.location.onload = LoadAnchorNamesAndIds(); //LoadAnchorNamesAndIds(); } +function GetAdmin() +{ + if (oEditor.FCKConfig.Admin == 1) + return "&admin=1"; +} + function show_props(obj, objName) { var result = ""; for (var i in obj) {