Kindeditor JS Value Problems and callback after uploading images, etc. kindeditor callback

Source: Internet
Author: User

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.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.