I am creating an HTA with FCK inside it. The problem I am running into currently is basehref doesnt seem to work.
Below is my creation code:
function LoadEditor(value) { var oFCKeditor = new FCKeditor( 'FCKEditor1', null, null, 'HTA') ; oFCKeditor.BasePath = "fckeditor/"; if (path != null) { tmpath = path; tmpath = tmpath.replace(/\\/g, '/'); //swap \ for / tmpath = tmpath.substring(0, tmpath.lastIndexOf("/")); //strip filename alert("file:///" + tmpath + "/"); oFCKeditor.Config['BaseHref'] = "file:///" + tmpath + "/"; } contents = value; content.innerHTML = oFCKeditor.CreateHtml(); } function FCKeditor_OnComplete( editorInstance ) { editorInstance.Commands.GetCommand('FitWindow').Execute(); editorInstance.SetData(contents); contents = ""; editorInstance.ResetIsDirty(); }