php调用kindedit富文本编辑器。
2016-02-04 18:25
579 查看
在<head></head>之间添加调用编辑器代码。
在文章内容区加入以下代码。
最终看到图中结果。
<!--调用kind富文本编辑器。--> <script charset="utf-8" src="/editor/kindeditor.js"></script> <script charset="utf-8" src="/editor/lang/zh_CN.js"></script> <script> KindEditor.ready(function(K) { window.editor = K.create('#editor_id'); }); </script>
在文章内容区加入以下代码。
<td style="text-align:right;">文章内容:</td> <script charset="utf-8" src="/editor/kindeditor.js"></script> <script> KE.init({ id : 'editor_id' }); $.ready(function() { KE.create('editor_id'); }); </script> <td><textarea id="editor_id" name="content" rows="20" width="100%" ></textarea> </td>
最终看到图中结果。
相关文章推荐
- 使用Notepad++进行php开发所必需的插件
- PHP预定义常量DIRECTORY_SEPARATOR
- PHP编程效率的20个要点
- 利用PHP执行SQL文件,将SQL文件导入到数据库
- php中文文件is_file检验失败(编码问题)
- yii 知识点
- Win7 iis配置ftp
- Yii2 高级版新建一个 Api 应用
- 分享几个基于 Yii2 的开源项目
- thinkphp3.2之模型(M层)
- PHP图片压缩的方法
- PHP图片压缩的方法
- 教你在Yii2.0框架中如何创建自定义小部件
- Yii2 自定义独立验证器
- Yii2 使用 Beanstalk 队列系统
- Yii2 注册表单验证规则 手机注册时候使用短信验证码
- Yii2 高级模板 多域名管理问题
- ThinkPHP - URL - 伪静态 - 路由 - 重写
- ThinkPHP - 配置项目结构
- 怎样配置PHP环境和安装Zendstdio编辑器