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?