mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing the TinyMCE image uploader in Chrome and Opera
--HG-- branch : dev
This commit is contained in:
@@ -24,7 +24,13 @@ var AddMediaDialog = {
|
||||
|
||||
var iframeLoadHandler = tinymce.dom.Event.add(iframe, 'load', function (ev) {
|
||||
try {
|
||||
var result = window.frames[iframeName].result, close = 0;
|
||||
var frameWindow = window.frames[iframeName];
|
||||
|
||||
if (frameWindow.document.URL == "about:blank") {
|
||||
return true;
|
||||
}
|
||||
|
||||
var result = frameWindow.result, close = 0;
|
||||
|
||||
if (result && result.url) {
|
||||
if (window.parent && window.parent.AddMediaDialog) {
|
||||
|
||||
Reference in New Issue
Block a user