KindEditor编辑器 用法
来源:互联网 发布:长虹led32538数据 编辑:程序博客网 时间:2024/05/16 07:29
先去官网下载相关文件
<link rel="stylesheet" href="kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="kindeditor/plugins/code/prettify.css" /><script charset="utf-8" src="kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="kindeditor/plugins/code/prettify.js"></script>
<script>
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="consult.content"]', {
cssPath : 'kindeditor/plugins/code/prettify.css',
uploadJson : 'kindeditor/jsp/upload_json.jsp',
fileManagerJson : 'kindeditor/jsp/file_manager_json.jsp',
allowFileManager : true,
/************************以下是简单模式*****************************************************************/
resizeMode : 2,allowPreviewEmoticons : false,
allowUpload : true,
//启用的功能
items : [ 'source','|','fontname', 'fontsize', '|','textcolor', 'bgcolor', 'bold', 'italic', 'underline', 'removeformat', '|',
'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|',
'emoticons', 'image', 'link'],
/*****************************************************************************************/
var self = this;
K.ctrl(document, 13, function() {
self.sync();
document.forms['example'].submit();
});
K.ctrl(self.edit.doc, 13, function() {
self.sync();
document.forms['example'].submit();
});
}
});
prettyPrint();
});
</script>
- kindeditor 编辑器的用法
- KindEditor编辑器 用法
- kindEditor,html编辑器用法与体会…
- kindEditor编辑器的使用
- 可视化HTML编辑器 KindEditor
- KindEditor 在线编辑器
- [编辑器]KindEditor 是什么?
- KindEditor 编辑器使用方法
- 线HTML编辑器KindEditor
- kindeditor编辑器 的使用方法!
- KindEditor编辑器的使用
- 所见即所得编辑器kindeditor
- KindEditor 编辑器使用方法
- 在线HTML编辑器 KindEditor
- 配置KindEditor文本编辑器
- kindeditor文本编辑器使用
- KindEditor 在线编辑器
- KindEditor编辑器API文档
- 使用Ant打包android程序
- javaScript函数调用传参本质-引用传递参数? 错错错!
- 数据库中in和exists关键字的区别
- 关于get_magic_quotes_gpc()函数(交互数据转义的判断)
- 黑马程序员:Java对象的初始化过程
- KindEditor编辑器 用法
- Java HashCode
- android几种对话框
- [转]Android JNI作用及其详解
- "mkimage" command not found - U-Boot images will not be built
- SVN+网站服务器同步更新
- 浅谈内存泄漏
- 数据结构算法新解(一)————概论 与 算法分析大O阶计算方法
- Google Calendar v3授权传参数