【kindeditor】kindeditor的使用
官网:http://kindeditor.net/demo.php
效果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAABLAAAAD4CAIAAABzB4iKAAAUdUlEQVR4nO3dXYiU96HH8efiXJTTglhiaSDQbOAIIcVp3APnQHNSYm5iyY22kAtZYk/CHlJJ8SUSEi/aBANnxcYQTcGrDcdttydlZc26WELXGPClJYoal8m2wZFDzZqsxpm1MWvMy3Munt3Z2ZnZmXFeHN3/58P3wh13Z8fZGPzxPPNMFAMAABCkqN0PAAAAgPYwCAEAAAJlEAIAAATKIAQAAAiUQQgAABAogxAAACBQBiEAAECgDEIAAIBAGYQAAACBMggBAAACZRACAAAEyiAEAAAIlEEIAAAQKIMQAAAgUAYhAABAoAxCAACAQBmEAAAAgTIIAQAAAmUQAgAABMogBAAACJRBCAAAECiDEAAAIFAGIQAAQKDqHoSjPamoa7Dk14U3V/raVM9opc8Y7Ipm7qbgl/M+kKJ7q/YgBruiKIpSPaPJL+aY54ENdkWVHwYAAMDtpt5BWLwHZ3fUaE9q7nYqs7rKmv2SgjssM/fmfyCz37DclxQ8jq7BOI5HR0eLP3uwK+oanPkj1KTKsAUAALh11TkI5xy2Kx1g80yyGVWOEM7eeYVl1jVYZmrOs+aSO5t9UNO7r+Sh1nR4EwAAYIGobxDWfAgt1TNa42cXLrTCrysz0PKDcc7uTNZcyRHF2ZFXdCgw6hos/g7FM7eWPxwAAMDtqvGLylR7jV8Z8x8hnNmOqZ7ROcfxCoZdweQrGYSp1PyvJ5wz8JLlOLPpZhdrXRvvb7/+1+hff/23G/9CAACAdmp4ENaxB+cfhMlvFO+8/OHCrsG5G7DMEcJyd1nfaaDVjxA6uxQAALitNToI559NBVeFqdHMuMvvvMIzOqfPCB0dLbjeZ9nXEBa9gLFwfFZ/LDYeAAAQjsYGYbLYurqKj/dVOGw42BVFXT0VryqTLLqZQ3uzqy9/jzNnjc53hLBwSFa4aEzlD6seIjQeAQCA21tDg3Cwa/qw3pyX+813LZg5b+Y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I0BiEAAEBrtHYQ9n547Z305PRVZKYPGMYFH87uxovps4UvO3TKKAAAQKu1chBOnwU6e9boxvS10vNCZ2/MX3e0tnNHDUIAAIBGtG4Qnh2bfdfBmWvMFC+9s2NxfPHKtdnLkO75+GJc7hCiQQgAANBsrXvbifyuO/HOlTiO44tXrsUFY29j+tr0eaGHJi+mTyQvKUx+d/rqo15DCAAA0EotGYQb09cupk/MvKtE/jhh+bGXTMGa3qvQIAQAAGieVr/tRAszCAEAABphEAIAAATKIAQAAAiUQQgAABAogxAAACBQBiEAAECgDEIAAIBA1TMIl2/oX/7sUHvX4PJnh5Zv6G/60wEAABCOegZh1ysjqfW/b+MmXP7sUGr9/3a9MtL0pwMAACAc9QzCz7/4au2rB+9f37/s6b62dP/6/q5XRj7/4qumPx0AAADhqGcQAgAAsAAYhAAAAIEyCAEAAAJlEAIAAATKIAQAAAiUQQgAABAogxAAACBQBiEAAECgDEIAAIBAGYQAAACBMggBAAACZRACAAAEyiAEAAAIlEEIAAAQqP8HsRQHKVIJnVUAAAAASUVORK5CYII=" alt="" />
0.下载文档
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJ0AAACKCAIAAAA/l9+iAAAKz0lEQVR4nO2d/2/U5h3H/degamxrGaSEK02raN+oqraatglaiW77wVIlNMLahrKkZKFJOFIxDCG0U9CaQckCSYGm4EqlIdqSAE0DpYikVRw4ElIScndJyFffJej6g+/sx/bz2L6z7/z4yectC13unsc+/Lrn8XPP8763uRSIRXF+vwFVkhDieNH8XEiQnO1A5J2X1QpndYjgyGOui/H7fY3be+pf6ql/qa9x+2L8vuOqwNVLecz1f/UvL8Wkx0vRx0vRR6PXrx7d7rgqjmtWyo2rh2+AJmXHtaurKxwOk15djEW6azc+6K2YvlU3d6tmpr/qwZdvf9v0h68bXvy64cWbH72emI+R9w1cvVQWXDs7O9euXbtmzRpSgSsHfz1xs2nmzpnZSPtspH32btuMdGZaOv0ocv5R5Hxs8GRf4+/Iu0dOqySEOI7jReQ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83lFAAAAABJRU5ErkJggg==" alt="" />
1.引入核心文件(CSS与JS)
items可以设置需要显示的控件
<!-- 编辑器 -->
<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-all.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>
var editor;
KindEditor.ready(function(K) {
editor = K.create('textarea[name="liuyan.content"]', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : true,
pasteType : 0, //设置能否粘贴
items : [ 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor',
'bold', 'italic', 'underline', 'removeformat', '|',
'justifyleft', 'justifycenter', 'justifyright',
'insertorderedlist', 'insertunorderedlist', '|',
'emoticons', 'image', 'link' ]
});
// 同步数据后可以直接取得textarea的value
editor.sync();
});
</script>
2.页面准备textarea
<!--编辑留言区域-->
发表您的留言:<br />
<form action="1.action" method="post" id="liuyanform">
<textarea id="liuyan.content" name="liuyan.content"
style="width: 100%;" class="el_editorBox"></textarea>
<input type="hidden" name="liuyan.name"> <br>
<p id="fabiao" class="btn btn-primary btn-sm" data-toggle="modal"
data-target="#add">
<span>发表</span>
</p>
</form>
3.处理的JS函数
判断编辑器是否为空以及获取编辑器的值异步ajax提交。
/**
*
* Created by liqiang on 2017/10/1.
*/
$(function() {
/**
* 提交按钮点击事件,内容不为空 的时候打开模态框输入姓名
*/
$("#fabiao").click(function() {
editor.sync();
// 判断内容区是否为空
if (editor.isEmpty()) {
alert("内容不能为空!");
return;
}
$("#tijiaomotai").modal();
});
$("#tijiao").click(function() {
$("input[name='liuyan.name']").val($("input[name='name']").val());
$.ajax({
url : 'myBlog/liuyan_addLiuyan.action',
data : {
'liuyan.content' : editor.html(),
'liuyan.name' : $("input[name='name']").val()
},
type : 'POST',
async : true,
success : function(data) {
alert(data);
window.location.href = 'liuyan_getLiuyans.action';
},
error : function() { }
});
}); });
【kindeditor】kindeditor的使用的更多相关文章
- kindEditor完整认识 PHP上调用并上传图片说明/////////////////////////////z
最近又重新捣鼓了下kindeditor,之前写的一篇文章http://hi.baidu.com/yanghbmail/blog/item/c681be015755160b1d9583e7.html ...
- 清空KindEditor富文本编辑器里面的内容方法
//清空KindEditorKindEditor.instances[0].html(""); 0表示第一个KindEditor编辑器对象 详情见链接:http://www.new ...
- 将kindeditor在线编辑器制作成smarty插件
在web开发中,在线编辑器是经常要用到的功能模块,虽说配置在线编辑器没有多大难度,但是每一次编写重复的代码,总是让人感觉不爽. 本篇,就来讲解一下,如何将kindeditor制作成smarty的一个自 ...
- Kindeditor(JSP)& 上传目录不存在
一.基本配置 Kindeditor是一款富文本编辑器,作用跟博客园写文章用的这个编辑器一样,都是为了让文本加入各种各样的修饰元素. 使用方法如下,解压缩,把期中的ASP\NET\PHP文件夹都删除,然 ...
- KindEditor上传本地图片在ASP.NET MVC的配置
http://www.cnblogs.com/upupto/archive/2010/08/24/1807202.html 本文解决KindEditor上传本地图片在ASP.NET MVC中的配置. ...
- kindeditor的简单使用
上传到云: 一.引入kindeditor <%@ page language="java" contentType="text/html; charset=UTF- ...
- 优秀的富文本编辑器 Kindeditor
<textarea name="txtbody" style="width:100%;height:320px;" > {$article.txt} ...
- asp.net中两款文本编辑器NicEdit和Kindeditor
过Web开发的朋友相信都使用过富文本编辑器,比较出名的CuteEditor和CKEditor很多人应该已经使用过,在功能强大的同时需要加载的东西也变得很多.下面要推荐的两款富文本编辑器都是使用JS编写 ...
- extjs4 与 kindeditor
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl;?> ...
- KindEditor配置步骤
KindEditor是一套开源的HTML可视化编辑器,主要用于让用户在网站上获得所见即所得编辑效果,兼容IE.Firefox.Chrome.Safari.Opera等主流浏览器. KindEditor ...
随机推荐
- 删除sqlserver管理器登录信息缓存
在Windows10下测试有效: C:\Users\<user>\AppData\Roaming\Microsoft\Microsoft SQL Server\100\Tools\Shel ...
- 简单的cocos2dx笔试题
1.参数传递有几种方式?值传递.指针传递.引用传递 2.指针和引用有什么分别:如果传引用比传指针安全,为什么?如果我使用常量指针难道不行吗? 1.指针是一个变量,存储一个地址,指向内存的一个存储单元: ...
- CF-1143D. The Beatles
题意:有间隔为k的n个点在数轴上,下标为 \(1,k+1, 2*k+1,\cdots (n-1)*k+1\) 首尾相接.设起点为s,步长为L,而现在只知道s距离最近的点的距离为a,和(s+L)距离最近 ...
- NOIP2018 - 一些板子
好多东西都不熟练…… 数论 数论分块「bzoj2956: 模积和」 10.28.2018 #include<bits/stdc++.h> typedef long long ll; ; ; ...
- Python基础——赋值机制
使用id()函数用于获取对象的内存地址. 使用is来判断是不是指向同一个内存. 把一个对象赋值给另一个对象,两个对象都指向同一个内存地址. test=1000 test1=test id(test) ...
- 动态规划:Codeforces Round #427 (Div. 2) C Star sky
C. Star sky time limit per test2 seconds memory limit per test256 megabytes inputstandard input outp ...
- HDU 1561 The more, The Better(树形背包)
The more, The Better Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Oth ...
- TextView设置缩略显示
1.代码设置 textview.setSingleLine(); textview.setEllipsiz(TextUtils.TruncateAt.valueOf("END")) ...
- loj2000 「SDOI2017」数字表格
there #include <iostream> #include <cstring> #include <cstdio> using namespace std ...
- ogre3D学习基础11 -- 日志文件的使用与异常处理
用文件来记录 Ogre 系统初始化.运行.结束以及调试信息.使用日志便于我们调试程序.Ogre 日志系统由两个类组成:Log 类与 LogManager. 1.Log类 Log 类的一个对象对应于一个 ...