1 var FileBrowserDialogue = {
3 // remove tinymce stylesheet.
4 var allLinks = document.getElementsByTagName("link");
5 allLinks[allLinks.length-1].parentNode.removeChild(allLinks[allLinks.length-1]);
7 fileSubmit : function (FileURL) {
9 var win = tinyMCEPopup.getWindowArg("window");
11 // insert information now
12 win.document.getElementById(tinyMCEPopup.getWindowArg("input")).value = URL;
14 // change width/height & show preview
16 if (win.ImageDialog.getImageData)
17 win.ImageDialog.getImageData();
18 if (win.ImageDialog.showPreviewImage)
19 win.ImageDialog.showPreviewImage(URL);
27 tinyMCEPopup.onInit.add(FileBrowserDialogue.init, FileBrowserDialogue);