Kindeditor independently calls a Single Image Upload to add an instance with the preview function. kindeditor Single chart
Html code:
<P> <input type = "hidden" id = "url1" name = "IDCardPicture1" value = ""/> <input type = "button" id = "image1" value = "select image" style = "width: 150px; height: 30px; "/> </p> <div id =" J_imageView1 "> </div>
JS Code:
K ('# image1 '). click (function () {editor. loadPlugin ('image', function () {editor. plugin. imageDialog ({showRemote: false, imageUrl: K ('# url1 '). val (), clickFn: function (url, title, width, height, border, align) {$ ("# licensecheck" ).html (""); var div = k('{j_imageview1'{{div.html (''); div. append (''); K ('# url1 '). val (url); editor. hideDialog ();}});});});
The above Kindeditor individually calls the Single Image Upload to add the preview function. This is all the content shared by the editor. I hope you can give me a reference and support the help house.