Index: trunk/admin/editor/cmseditor/editor/dialog/fck_link/fck_link.js =================================================================== diff -u -r2091 -r2177 --- trunk/admin/editor/cmseditor/editor/dialog/fck_link/fck_link.js (.../fck_link.js) (revision 2091) +++ trunk/admin/editor/cmseditor/editor/dialog/fck_link/fck_link.js (.../fck_link.js) (revision 2177) @@ -151,31 +151,27 @@ window.onload = function() { - // Translate the dialog box texts. + CreateLinkTypes(); oEditor.FCKLanguageManager.TranslatePage(document) ; - - // Fill the Anchor Names and Ids combos. - //LoadAnchorNamesAndIds(); - //alert(window.location.search.substr(1)); - - // Load the selected link information (if any). LoadSelection() ; - - // Show the initial dialog content. GetE('divInfo').style.display = '' ; - - // Activate the "OK" button. window.parent.SetOkButton( true ) ; - -// if (window.location.search.substr(1) == 'create'){ -// alert('OK'); -// window.parent.Ok(); -// } - } var bHasAnchors ; +function CreateLinkTypes() +{ + if (typeof(oEditor.FCKConfig.LocalLinksEsists) != 'undefined') + { + if (oEditor.FCKConfig.LocalLinksEsists != 'Off') + oEditor.FCKTools.AddSelectOption( document, GetE('cmbLinkType'), 'Internal Web Page', 'internal'); + } else + oEditor.FCKTools.AddSelectOption( document, GetE('cmbLinkType'), 'Internal Web Page', 'internal'); + oEditor.FCKTools.AddSelectOption( document, GetE('cmbLinkType'), 'External Web Page', 'external'); + oEditor.FCKTools.AddSelectOption( document, GetE('cmbLinkType'), 'E-mail', 'email'); + oEditor.FCKTools.AddSelectOption( document, GetE('cmbLinkType'), 'File', 'Doc'); +} function LoadAnchorNamesAndIds() {