diff --git a/core/inlineimage.class.inc.php b/core/inlineimage.class.inc.php index 4782efff4..f452c1226 100644 --- a/core/inlineimage.class.inc.php +++ b/core/inlineimage.class.inc.php @@ -473,12 +473,15 @@ EOF } }); } - oEditor.widgets.registered.uploadimage.onUploaded = function( upload ) { - var oData = JSON.parse(upload.xhr.responseText); - this.replaceWith( '' ); - } + if (oEditor.widgets.registered.uploadimage) + { + oEditor.widgets.registered.uploadimage.onUploaded = function( upload ) { + var oData = JSON.parse(upload.xhr.responseText); + this.replaceWith( '' ); + } + } }); }); EOF