How to open image or content selector for workspace and get the selected data javascript?

Options

I need to open content and image selector from tinyMCE button. Could you please help me with javascript to open a selector and get the data of the content or image selected by user

Comments