Ueditor is actually integrated Webuploader, when doing content release want to have both ueditor and a separate attachment upload button, then load a webuploader is too bloated, alone with ueditor upload function is more appropriate
The first is to display the attachment upload dialog, two ways
ue.ui._dialogs["attachment" + "Dialog"] (recommended);
Dialog = parent. $EDITORUI [Window.frameElement.id.replace (/_iframe$/, ')];
Then replace the OnOK function of dialog, the original OnOK will execute Editor.execcommand (' insertfile ', list);//dialog/attachment/attatchment.js
We re-write a OnOK function to replace the original OnOK, just simply remove the Editor.execcommand (' insertfile ', list), and get the file list to do their own processing.
In Dialog.js
In this case, combine dialog's own ID to give you the newly generated IFRAME also assigns an ID to _iframe as a suffix
contenthtml = ' <span id= "' + this.id + ' _contmask" class= "Dialogcontmask" ></span><iframe id= "' + this.id +
' _iframe ' class= "%%-iframe" height= "100%" width= "100%" frameborder= "0" src= "' + This.iframeurl + '" ></iframe> " ;
Ueditor Call the attachment upload function