Hi Adam,
The Requirement is something like to customize the insert image button. For this I have created a custom button and on the click of thatbutton I open my custom page somethink like following.
User gives the name of picture as shown in above fig.
I'm creating the HTML string ImageLink
On insert click the above HTML is actually converted to <img alt="alt" src="../../xyz/DSC00686.JPG"" /> in FireFox. but in IE 7.0 it is working fine.
The JS method I 'm using is on insert click is
function button_click()
{
var strImageLink='<%=ImageLink %>' ;
if(Trim(strImageLink) == "")
{
alert('Please insert some picture.'); return false;
}
var editor=Window_GetDialogArguments(window);
editor.PasteHTML(strImageLink);
window.top.close();
}