X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e7927df2744d46e176c7114bf63f1bd8f5746168..ec5b493bff5efa683aadf5f78aa891eff3550156:/redakcja/static/filebrowser/js/FB_TinyMCE.js diff --git a/redakcja/static/filebrowser/js/FB_TinyMCE.js b/redakcja/static/filebrowser/js/FB_TinyMCE.js deleted file mode 100644 index b2d4d60f..00000000 --- a/redakcja/static/filebrowser/js/FB_TinyMCE.js +++ /dev/null @@ -1,28 +0,0 @@ -var FileBrowserDialogue = { - init : function () { - // remove tinymce stylesheet. - var allLinks = document.getElementsByTagName("link"); - allLinks[allLinks.length-1].parentNode.removeChild(allLinks[allLinks.length-1]); - }, - fileSubmit : function (FileURL) { - var URL = FileURL; - var win = tinyMCEPopup.getWindowArg("window"); - - // insert information now - win.document.getElementById(tinyMCEPopup.getWindowArg("input")).value = URL; - - // change width/height & show preview - if (win.ImageDialog){ - if (win.ImageDialog.getImageData) - win.ImageDialog.getImageData(); - if (win.ImageDialog.showPreviewImage) - win.ImageDialog.showPreviewImage(URL); - } - - // close popup window - tinyMCEPopup.close(); - } -} - -tinyMCEPopup.onInit.add(FileBrowserDialogue.init, FileBrowserDialogue); -