In the upload tab of the Image plugin in CKEDITOR, user has to first choose file from the computer and then has to click 'Send to the Server' button to send the file to the server and fill the UI elements in the info tab.
Now I looked at the code of the upload tab.It is like this -
{
id: 'Upload',
hidden: false,
filebrowser: 'uploadButton',
label: lang.uploadTab,
elements: [
{
type: 'file',
id: 'upload',
label: lang.btnUpload,
style: 'height:40px'
},
{
type: 'fileButton',
id: 'uploadButton',
filebrowser: 'info:src',
label: lang.btnUpload,
'for': [ 'Upload', 'upload' ]
}
]
}
It has no full description of how the button 'Send to the Server' is added to the dialog.I actually do not want to make it fussy for the user to first choose the image and then manually click the button to send the image to the server.
How can I automate the process of sending the image to the server and filling the UI elements of the info tab?
I mean user should just Choose a file, after the file is chosen, image should be automatically sent to the server and all the UI elements of the info tab should get filled with the image properties.After it user can click 'OK' or 'Cancel' to render the image on editor as usual.