Hi ivanb,
1. Do you think this approach will work?
Yes
2. Is there a way for me to get notification from Insert Image dialog when Cancel button is clicked? I would like to restore the selection in this case.
The cancel button at in the insert image dialog by the code below.
<input class="formbutton" type="button" value="[[Cancel]]" onclick="do_Close()" id="Button2" />
You can change it to
<input class="formbutton" type="button" value="[[Cancel]]" onclick="myFunction()" id="Button2" />
Then add the script to the bottom of the page. Mean that you can fire any code you need. (notification Etc..)
<script>
function myFunction()
{
//alert("method");
//add your own code here
do_Close();
}
</script>
Regards,
Ken