基于easyui的富文本编辑器的实现
来源:互联网 发布:java进阶书籍推荐知乎 编辑:程序博客网 时间:2024/06/06 01:48
1,1作为编辑器 可以使我们省去很多事情,方便了不少,不过,在其过程中,最好把相关的源码看一下,这样的话,才可以进行深入的研究。
1.2其实他给我们很多东西带来了灵感 如相关的打印等等
<!DOCTYPE HTML>
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>新闻发布编辑</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="js/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="js/umeditor/third-party/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="js/umeditor/umeditor.min.js"></script>
<script type="text/javascript" src="js/umeditor/jlang/zh-cn/zh-cn.js"></script>
<link rel="stylesheet" href="css/index2.css" />
<script type="text/javascript" src="easyui/js/jquery-1.8.2.min.js" ></script>
<script type="text/javascript" src="easyui/js/jquery.easyui.min.js" ></script>
<link href="easyui/css/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link href="easyui/css/themes/icon.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>编辑文本</h1>
<table>
<tr>
<td>标题</td>
<td><input type="text" id="xw1"></input></td>
</tr>
<tr>
<td>开始时间</td>
<td><input class="easyui-datebox" style="width:100px" id="xw2"/>
</td>
<td>结束时间</td>
<td><input class="easyui-datebox" style="width:100px"/ id="xw3"></td>
</tr>
<table>
<!--style给定宽度可以影响编辑器的最终宽度-->
<script type="text/plain" id="myEditor" style="width:1000px;height:240px;">
<p id="xw4">这里我可以写一些输入提示</p>
</script>
<div class="clear"></div>
<table>
<tr>
<td>
<button class="btn" onclick="#"/>保存</button>
<button class="btn" onclick="#"/>取消</button>
</td>
</tr>
</table>
<div>
<h3 id="focush2"></h3>
</div>
<script type="text/javascript">
//实例化编辑器
var um = UM.getEditor('myEditor');
um.addListener('blur',function(){
$('#focush2').html('编辑器失去焦点了')
});
um.addListener('focus',function(){
$('#focush2').html('')
});
</script>
</body>
</html>
阅读全文
0 0
- 基于easyui的富文本编辑器的实现
- 基于swift的一个富文本编辑器
- 【easyui】kindeditor富文本(html编辑器)的使用
- Javascript实现简单的富文本编辑器
- N个富文本编辑器/基于Web的HTML编辑器
- N个富文本编辑器/基于Web的HTML编辑器
- 基于bootstrsp的jquery富文本编辑器的手册说明
- 前段时间做过一个基于bootstrap的富文本编辑器
- Neditor 1.4.4 发布,基于 Ueditor 的富文本编辑器
- 我的富文本编辑器
- 富文本编辑器的使用
- 富文本编辑器的使用
- 常用的富文本编辑器
- 富文本编辑器的使用
- 富文本编辑器的制作
- 富文本编辑器的使用
- 富文本编辑器的用法
- 富文本编辑器的使用
- 前端js和后端PHP函数的调用
- 文件上传
- PCI 总线初始化
- spring-boot-starter-data-rest 资源暴露策略设置 RepositoryDetectionStrategies
- TCP协议的三次握手和四次释放详解
- 基于easyui的富文本编辑器的实现
- 海航集团连续两年获评“中国企业社会责任最佳责任企业”奖 不可能债务违约
- Linux下四款Web服务器压力测试工具(http_load、webbench、ab、siege)介绍
- 工厂模式实现多种数据库连接
- 游戏服务器端框架学习
- iOS-夜间模式(换肤设置)
- PHP设计模式系列
- 通过插值让matlab画出来的三维图光滑一些、视图选择
- 百度2017春招-买帽子