Greg,
How is the code of the above example:
function callInsertImage()
{
var editor1 = document.getElementById('<%=editor.ClientID%>');
editor1.FocusDocument();
var editdoc = editor1.GetDocument();
editor1.ExecCommand('new');
editor1.ExecCommand('ImageGalleryByBrowsing');
InputURL();
document.getElementById("imageFld").focus();
}
function InputURL()
{
var editor1 = document.getElementById('<%=editor.ClientID%>');
var editdoc = editor1.GetDocument();
var imgs = editdoc.getElementsByTagName("img");
if(imgs.length>0)
{ document.getElementById("imageFld").value = imgs[imgs.length-1].src;
}
else
{
setTimeout(InputURL,500);
}
}
Before open the image gallery dialog, the editor text area is reset.
This example just shows you how to use the javaScript API to use the editor as an image selecctor. You can modify the above code to meet your own requirements.
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx