I've tried to MOD this so that it can be run from it's own folder. It was messy and overwrote some of my images & files otherwise. The first thing to do is add a new variable for the location of your installation. I put mine in a folder called RTE off my root folder.
Open RTE_configuration\RTE_Skin_file.asp
Go Line 54 & change:
'Path to button images
Dim strImagePath = "images/"
to:
'Path to button images
Const strRTEPath = "rte/"
Dim strImagePath
strImagePath = strRTEPath & "images/"
(this fixes the images in the toolbars)
Then open RTE_javascript.asp
Line 202: src=""includes/RTE_iframe_colour_palette.asp""
Becomes: src=""" & strRTEPath & "includes/RTE_iframe_colour_palette.asp""
Do the same thing for lines 207, 212, 217 (this adds our installation path for our popups).
The open up includes\RTE_toolbar_inc.asp
Do a search and replace on winOpener(\'
so that it becomes winOpener(\'" & strRTEPath & "
There should be 10 replacements, again this fixes the path to our popups windows.
Finally go into RTE_editor_inc.asp itself
Before Line 66 add in the path to our installation
Const strRTEPath = "rte/"
Now we can use that on the following lines to point to the correct javascript include files.
Line 67: Response.Write("<link href=""RTE_configuration/default_style.css"" rel=""stylesheet"" type=""text/css"" />")
becomes: Response.Write("<link href=""" & strRTEPath & "RTE_configuration/default_style.css"" rel=""stylesheet"" type=""text/css"" />")
Line 68: Response.Write(vbCrLf & "<script language=""JavaScript"" src=""/RTE_javascript_common.asp"" type=""text/javascript""></script>")
Becomes: Response.Write(vbCrLf & "<script language=""JavaScript"" src=""" & strRTEPath & "RTE_javascript_common.asp"" type=""text/javascript""></script>")
Line 75: Response.Write(vbCrLf & "<script language=""JavaScript"" src=""/RTE_javascript.asp?textArea=" & Server.URLEncode(strTextAreaName) & """ type=""text/javascript""></script>")
becomes: Response.Write(vbCrLf & "<script language=""JavaScript"" src=""" & strRTEPath & "RTE_javascript.asp?textArea=" & Server.URLEncode(strTextAreaName) & """ type=""text/javascript""></script>")
It works for me like this although I've not tested it very thoroughly and i've noticed that thigns like the image browser still need a little tweaking. I've no doubt missed some other things as well, but hopefully people who wish to run the RTE like this will find this a good start. Perhaps even -borg- if you want can change the main installation to do this as I think most people will find it easier not have the files in their main application folder.
And indeed thanks for yet another wonderful application.