JS Code: note placed at the bottom of the page, the page needs to load ueditor necessary 2 JS, placed in the head of the page:
Ueditor/editor_all_min.jsueditor/editor_config_big.jsvar Myeditorimage;var d;function upImage () { d = Myeditorimage.getdialog ("Insertimage"); D.render (); D.open ();} Myeditorimage= new UE.ui.Editor (); Myeditorimage.render (' myeditorimage '); Myeditorimage.ready (function () { Myeditorimage.setdisabled (); Myeditorimage.hide ();//Hide UE frame body myeditorimage.addlistener (' beforeinsertimage ', function (t, ARG) {alert (ARG[0].SRC),//arg is the return value of the uploaded image, is the number of groups, if you upload more than one picture, please traverse the value. The image address assigned to the page input, I use jquery here, according to their own writing assignment, to here is very simple, will JS of will write. $ ("#abccc"). attr ("value", ARG[0].SRC);});
Page to invoke:
<tr><th> upload Image </th><td><input type= "text" id= "ABCCC"/><input type= "button" id= " Myeditorimagesss "onclick=" upimage (); "value=" Upload picture "/></td></tr>
Ueditor call picture upload separately