how can i know when an icon clicks using tinymce editor
===

how can i know when an icon clicks using tinymce editor, actually i am trying to solve the issue of multiple windows open when we click multiple times to the jbimage plugin icon.
I want to make sure that when there is already an upload image window then the second popup should not appear.