Home > Backend Development > PHP Tutorial > bootstrap的模态框中引入kindeditor,没法正常显示

bootstrap的模态框中引入kindeditor,没法正常显示

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:29:22
Original
1319 people have browsed it

我把kindeditor放入了bootstrap的模态框中了,在选中文章的时候,文章会显示在kindeditor中,但是再换选另一篇文章的时候,数据无法清空,已使用

<code>$("#myModal1").on("hidden.bs.modal", function() {
        $(this).removeData("bs.modal");
    });
</code>
Copy after login
Copy after login

后来发现是因为在写模态框数据的那个页面中引入了jquery而导致数据无法清空,但是如果不引入jquery,kindeditor又没法正常加载,求解决方法

回复内容:

我把kindeditor放入了bootstrap的模态框中了,在选中文章的时候,文章会显示在kindeditor中,但是再换选另一篇文章的时候,数据无法清空,已使用

<code>$("#myModal1").on("hidden.bs.modal", function() {
        $(this).removeData("bs.modal");
    });
</code>
Copy after login
Copy after login

后来发现是因为在写模态框数据的那个页面中引入了jquery而导致数据无法清空,但是如果不引入jquery,kindeditor又没法正常加载,求解决方法

查看Kindeditor的文档,模态框显示的时候,是否需要对kindeditor进行重新赋值,或者销毁重建

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
There is no bootstrap custom video tutorial
From 1970-01-01 08:00:00
0
0
0
Laravel: Problem using bootstrap locally
From 1970-01-01 08:00:00
0
0
0
html5 - Problem with bootstrap modifying style
From 1970-01-01 08:00:00
0
0
0
Introducing bootstrap is invalid
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template