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/asp.net/file_manager_json.ashx ', a Llowfilemanager:true,//sets the callback function to run after the editor is created Aftercreate:function () {var = this; K.ctrl (document, function () {self.sync (); K (' form[name=example] ') [0].submit (); }); K.ctrl (Self.edit.doc, (), function () {self.sync (); K (' form[name=example] ') [0].submit (); }); },//The callback function that is run after uploading the file, gets the path of the uploaded picture Afterupload:function (URL) {var a = $ ("#uppics"). Val (); if (A.length > 0) {$ ("#uppics"). Val (A + "," + URL); } else {$ ("#uppics"). val (URL); }//alert ($ ("#uppics"). Val ())}, Aftercreate:function () {//to fetchValue setting here This function is to synchronize the value of Kindeditor to the TextArea text box This.sync (); }, Afterblur:function () {//At the same time set here This.sync (); }, items: [' justifyleft ', ' justifycenter ', ' justifyright ', ' justifyfull ', ' Emoticons ', ' multiimage ', ' baidumap ', ' insertorderedlist ', ' insertunorderedlist ', ' Indent ', ' outdent ' ', ' subscript ', ' superscript ', ' formatblock ', ' fontname ', ' fontsize ', ' ForeColor ', ' Hilitecolor ', ' Bold ', ' italic ', ' underline ', ' strikethrough ', ' lineheight ', ' Removeformat ']}); });
Kindeditor JS value problem and post-upload image callback, etc.