(retrofit from trunk) Image upload inside CKEditor (via drag and drop) seems to be desactivated on IE9.

SVN:2.3[4316]
This commit is contained in:
Denis Flaven
2016-08-05 10:19:30 +00:00
parent c55a46e52b
commit 45c0ad5597

View File

@@ -473,12 +473,15 @@ EOF
}
});
}
oEditor.widgets.registered.uploadimage.onUploaded = function( upload ) {
var oData = JSON.parse(upload.xhr.responseText);
this.replaceWith( '<img src="' + upload.url + '" ' +
'width="' + oData.width + '" ' +
'height="' + oData.height + '">' );
}
if (oEditor.widgets.registered.uploadimage)
{
oEditor.widgets.registered.uploadimage.onUploaded = function( upload ) {
var oData = JSON.parse(upload.xhr.responseText);
this.replaceWith( '<img src="' + upload.url + '" ' +
'width="' + oData.width + '" ' +
'height="' + oData.height + '">' );
}
}
});
});
EOF