Kindeditor is introduced into the bootstrap modal box and cannot be displayed normally.

Source: Internet
Author: User
I put kindeditor into the bootstrap modal box. When I select an article, the article will be displayed in kindeditor. However, when I select another article, the data cannot be cleared, {code...} used ...} later, it was found that jquery was introduced in the page where the modal frame data was written... I put kindeditor into the bootstrap modal box. When I select an article, the article will be displayed in kindeditor. However, when I select another article, the data cannot be cleared and has been used.

$ ("# MyModal1"). on ("hidden. bs. modal", function () {$ (this). removeData ("bs. modal ");});

Later, it was found that the data could not be cleared because jquery was introduced in the page where the modal box data was written. However, if jquery was not introduced, kindeditor could not be loaded normally.

Reply content:

I put kindeditor into the bootstrap modal box. When I select an article, the article will be displayed in kindeditor. However, when I select another article, the data cannot be cleared and has been used.

$ ("# MyModal1"). on ("hidden. bs. modal", function () {$ (this). removeData ("bs. modal ");});

Later, it was found that the data could not be cleared because jquery was introduced in the page where the modal box data was written. However, if jquery was not introduced, kindeditor could not be loaded normally.

Check the Kindeditor document. Do you need to assign a value to kindeditor or destroy the reconstruction when the modal box is displayed?

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.