I changed the value of the URLType to relative path but still I'm getting the full path in the text box,
I used the same script in the (use-CuteEditor-as-image-selector.aspx ) from the How To file in the documatation and I added the URLType property and also I try to add it in the .cs code (Editor1.URLType = CuteEditor.URLType.SiteRelative;) but still I'm getting the full path.
I think as I told you the problem is in the java script it self in the InputURL() function, I have to change the script so I can reach the URL property insted of calling the src image property :
function InputURL()
{
var editor1 = document.getElementById('<%=Editor1.ClientID%>');
var editdoc = editor1.GetDocument();
var imgs = editdoc.images;
if(imgs.length>0)
{ document.getElementById("txtURL").value = imgs[imgs.length-1].src;
document.getElementById("txtURL").focus();
}
else
{
setTimeout(InputURL,500);
}
}