kindeditor4.1.7 Ajax Submit Form input cannot get data

Source: Internet
Author: User

Today in the project, the use of Kindeditor, the project's form is to use AJAX to submit data, and the previous version of the treatment of conflict, the Cup!

Before this use a relatively stupid method to solve the problem, when it is mainly not look at the API, today to deal with the problem again, looked at the API, found that the problem can be more simple to deal with, see the code

The code is as follows Copy Code

var _editer = Kindeditor.create ('. Kindeditor ', {
Allowfilemanager:true,
Allowupload:false,
Width: ' 90% ',
Afterblur:function () {///Use this method to synchronize data immediately after the rich Text edit box has been burnt
Kindeditor.sync (". Kindeditor");
}
});

In

This is done using the Afterblur method, which is triggered when the edit box is out of focus and then synchronizes the data.

In fact, there is another way to deal with, that is afterchange, but the method is handled too frequently, so choose Afterblur.

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.