Home > Backend Development > PHP Tutorial > 怎么ajax加载kindeditor编辑器

怎么ajax加载kindeditor编辑器

WBOY
Release: 2016-06-13 12:05:51
Original
1040 people have browsed it

如何ajax加载kindeditor编辑器
正常的方法如下代码是可以的,但是我现在有一个按钮,点击按钮后通过ajax动态加载一个编辑器(可能会添加多个编辑器),如何通过ajax做到呢

<br /><script charset="utf-8" src="kindeditor-4.0.5/kindeditor-min.js"></script><br />      <script charset="utf-8" src="kindeditor-4.0.5/lang/zh_CN.js"></script><br />     <br />      <script><br />			var editor;<br />			KindEditor.ready(function(K) {<br />				editor = K.create('textarea[name="contents"]', {<br />					allowFileManager : true<br />				});<br />			});<br />		</script><br /><br />
Copy after login

------解决方案--------------------
他的示例文件 examples/dynamic-load.html 已经演示了这个做法

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template