I would like to replace the image upload tab with my own iframe.
I know I need to edit the /plugins/image/dialogs/image.js file but not sure how. It currently has
{ id : 'Upload', hidden : true, filebrowser : 'uploadButton', label : editor.lang.image.upload, elements : [ { type : 'file', id : 'upload', label : editor.lang.image.btnUpload, style: 'height:40px', size : 38 }, { type : 'fileButton', id : 'uploadButton', filebrowser : 'info:txtUrl', label : editor.lang.image.btnUpload, 'for' : [ 'Upload', 'upload' ] } ] },
Re: Replace Image Upload Tab with IFrame
The issue I am getting is when I delete the existing two elements (upload, uploadButton) a JavaScript error is thrown as soon as I click the image icon as some other code is expecting these Items to be there so I just hide them.