Development

#2625: mediaLibraryJsError.patch

You must first sign up to be able to contribute.

Ticket #2625: mediaLibraryJsError.patch

File mediaLibraryJsError.patch, 0.6 kB (added by notjosh, 1 year ago)

Patch including the try/catch

  • main.js

    old new  
    3434      tinyMCE.setWindowArg('editor_id', this.fileBrowserWindowArg); 
    3535      if (this.fileBrowserType == 'image') 
    3636      { 
    37         this.fileBrowserWin.showPreviewImage(url); 
     37        try 
     38        { 
     39          this.fileBrowserWin.showPreviewImage(url); 
     40        } 
     41        catch (ex) 
     42        { 
     43        } 
    3844      } 
    3945    } 
    4046    this.fileBrowserWin.document.forms[this.fileBrowserFormName].elements[this.fileBrowserFieldName].value = url;