When selecting a document and hitting Insert using the below example
the selected document does not appear in the text box - when on Firefox 2.x - works fine in FF 3.x and IE 7.x?
Looks like the links.length always returns 0 on Firefox 2.x? Any idea on how to address this issue.
function InputURL()
{
var editor1 = document.getElementById('CE_Editor1_ID');
var editdoc = editor1.GetDocument();
var links = editdoc.getElementsByTagName("a");
if(links.length>0&&links[links.length-1].href!="")
{ document.getElementById("docFld").value = links[links.length-1].href;
}
else
{
setTimeout(InputURL,500);
}
}
</script>