Hi,
I also have this problem/need.
I asked Adam on live chat about making the control in "Use as Image Selector" hidden. He said to contain the control in a div which is hidden, like:-
<div style="visibility:hidden;">
The control
</div>
BUT when you do this the javascript function "InputURL" does not return the image filename back to the form element "imageFld".
function InputURL()
{
var editor = document.getElementById('<?php echo $ClientID;?>');
var editdoc = editor.GetDocument();
var imgs = editdoc.getElementsByTagName("img");
if(imgs.length>0)
{
document.getElementById("imageFld").value = imgs[imgs.length-1].src;
}
else
{
setTimeout(InputURL,500);
}
}
Is there a way to make this work?