rem: filepath = "file:\/\/\/" + href.replace(/\\/gi, "\/"); tinyMCE.themes['wikieditor'].insertLink(filepath, "", text, "", "", dummy, ""); 
add: filepaths = "file:\/\/\/" + href.replace(/\\/gi, "\/"); tinyMCE.themes['wikieditor'].insertLink(filepaths, "", text, "", "", dummy, ""); 
context: function insertLink() {    var wikiTabElm = document.getElementById("wiki_tab");    var webTabElm = document.getElementById("web_tab");    var fileTabElm = document.getElementById("file_tab");    var attachTabElm = document.getElementById("attachments_tab");    var emailTabElm = document.getElementById("email_tab");    var dummy;    tinyMCEPopup.restoreSelection();    if (wikiTabElm.className == "current") {        var href = document.forms[0].wiki_page.value;        var space = document.forms[0].wiki_space.value;        var wikitext = document.forms[0].wiki_text.value;        tinyMCE.themes['wikieditor'].insertLink(href, "", wikitext, space, "", dummy, "");    } else if (webTabElm.className == "current") {        var webtext = document.forms[0].web_text.value;        var href = document.forms[0].web_page.value;        tinyMCE.themes['wikieditor'].insertLink(href, "", webtext, "", "", dummy, "");    } else if (attachTabElm.className == "current") {        var href = document.forms[0].attach.value;        var text = document.forms[0].attach_text.value;        tinyMCE.themes['wikieditor'].insertLink("wikiattachment:-:" + href, "", text, "", "", dummy, "");    } else if (fileTabElm.className == "current") {        var text = document.forms[0].file_text.value;        var href = document.forms[0].filepath.value;        var filepath="";        if (":" == href.charAt(href.indexOf("\\") - 1))            filepath = "file:\/\/" + href.replace(/\\/gi, "\/");        else if (href.substring(0, 2) == "\\\\")            filepath = "file:\/\/\/" + href.replace(/\\/gi, "\/");        tinyMCE.themes['wikieditor'].insertLink(filepath, "", text, "", "", dummy, "");    } else if (emailTabElm.className == "current") {        var text = document.forms[0].email_text.value;        var email = document.forms[0].email.value;        href = "mailto:" + email;        tinyMCE.themes['wikieditor'].insertLink(href, "", text, "", "", dummy, "");    }    tinyMCEPopup.close();}
meta: 6184	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/dd352e85541f4f0c03f7f567916b9a31621e2ad2/link.js/clean/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js