X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/717c14c014e3c988bcb392599a47ffa92630da78..f938afb8ab4cb091d12e0ef0311eaea14b774798:/platforma/static/filebrowser/js/FB_TinyMCE.js?ds=sidebyside diff --git a/platforma/static/filebrowser/js/FB_TinyMCE.js b/platforma/static/filebrowser/js/FB_TinyMCE.js deleted file mode 100755 index 86d6939b..00000000 --- a/platforma/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); -