Kindeditor JS value problem and post-upload image callback, etc.

Source: Internet
Author: User

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 execute after the editor is created Aftercreate:function () {var self = 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 executed after uploading the file, get the path to upload the 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 () {//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.

Related Article

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.