rpinson,
//If the length of the content returned by 'selectedTEXT' is zero but the length of the content returned by 'selectedHTML' is not zero, the user has selected only an image
This logic is no correct.
// get the active editor selection
var sel = editor1.GetSelection();
if(sel.type=="Control")
{
var img=editor.GetSelectionElement("IMG");
if(img)
{
//do something
}
var a=editor.GetSelectionElement("A");
if(a)
{
//do something
}
-----------
}
else if(sel.type=="Text")
{
//do something
}
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