Kindeditor JS Value Problems and callback after uploading images, etc. kindeditor callback
KindEditor. ready (function (K) {var editor = K. create ('# editor_id', {// upload management uploadJson: '/js/kindeditor/asp.net/upload_json.ashx', // file management fileManagerJson:'/js/kindeditor/plugin, allowFileManager: true, // set the callback function afterCreate: function () {var self = this; K. ctrl (document, 13, function () {self. sync (); K ('form [name = example] ') [0]. submit () ;}); K.ctrl(self.edit.doc, 13, function () {self. sync (); K ('form [name = example] ') [0]. submit () ;}) ;}, // callback function executed after the file is uploaded to obtain the path of the uploaded image afterUpload: function (url) {var a = $ ("# uppics "). val (); if (. length> 0) {$ ("# uppics "). val (a + "," + url);} else {$ ("# uppics "). val (url);} // alert ($ ("# uppics "). val ()}, afterCreate: function () {// you need to set the value here. this function is used to synchronize the value of KindEditor to the textarea text box this. sync () ;}, afterBlur: function () {// set this at the same time. sync ();}, items: ['justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'emoticons', 'multiimage', 'baidumap ', 'insertorderedlist', 'insertunorderedlist', 'indent ', 'outdent', 'subscript', 'superscript', 'formatblock', 'fontname', 'fontsize', 'forecolor ', 'hilitecolor', 'bold ', 'italic', 'underline', 'strikethangout', 'lineheight', 'removeformat']});
KindEditor upload image server fault
This is because in kindeditor \ plugins \ image
The following image.html Parameters
When you are using
<Script type = "text/javascript" charset = "UTF-8" src = "kindeditor/kindeditor. js"> </script>
/// Src = "kindeditor/kindeditor. js" ----> This is the js path relative to your asp page
<Script type = "text/javascript">
KE. show ({
Id: 'content1 ',
ImageUploadJson: '../jsp/upload_json.asp ',
/// Src = "kindeditor/kindeditor. js" ----> This is the js path of image.html under your kingeditor.
FileManagerJson: '../jsp/file_manager_json.asp ',
/// Src = "kindeditor/kindeditor. js" ----> This is the js path of image.html under your kingeditor.
AllowFileManager: true,
AfterCreate: function (id ){
KE. event. ctrl (document, 13, function (){
KE. util. setData (id );
Document. forms ['example ']. submit ();
});
KE. event. ctrl (KE. g [id]. iframeDoc, 13, function (){
KE. util. setData (id );
Document. forms ['example ']. submit ();
});
}
});
</Script>
How can I solve an error when uploading images in kindeditorjs? How can ASP reference DLL?
Set the upload directory permission to a broader user.