JQuery 制作的一款在线编辑器(xheditor)。兼容IE,Firefox...感觉不错
来源:互联网 发布:生活中耐看的女生知乎 编辑:程序博客网 时间:2024/05/16 03:58
http://h330894169.iteye.com/blog/748128
http://xheditor.com/
1.先去xheditor的官方网站下载压缩文件,网址:http://xheditor.com/
2.根据你自己的路径,在你的Html文件上面加入:
3.建立一个textarea,给他取一个id.
4.导入这一段。记住。$('#elem1').一定要和textarea的id一样,
5.这样。几个简单的在线编辑器就好了,非常实用。美观度也不错。皮肤,按钮什么。需要什么可以自行修改。具体修改方法请参考你下载的压缩包。里面有非常详细的例子程序。
6.再这里最后强调一下,css文件的导入。记住。他需要2个css文件。iframe.css和ui.css还有一个common.css.他们的路径位置是有关联的、结构目录请参考我附件下面的图片。已经
2.根据你自己的路径,在你的Html文件上面加入:
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" />
- <script type="text/javascript" src="js/jquery.js"></script>
- <script type="text/javascript" src="js/xheditor-zh-cn.min.js?v=1.0.0-final"></script>
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" /><script type="text/javascript" src="js/jquery.js"></script><script type="text/javascript" src="js/xheditor-zh-cn.min.js?v=1.0.0-final"></script>
3.建立一个textarea,给他取一个id.
4.导入这一段。记住。$('#elem1').一定要和textarea的id一样,
- <script type="text/javascript">
- $(pageInit);
- function pageInit(){
- $('#elem1').xheditor({skin:'vista',upImgUrl:upload.jsp'});
- }
- </script>
<script type="text/javascript">$(pageInit);function pageInit(){$('#elem1').xheditor({skin:'vista',upImgUrl:upload.jsp'});}</script>
5.这样。几个简单的在线编辑器就好了,非常实用。美观度也不错。皮肤,按钮什么。需要什么可以自行修改。具体修改方法请参考你下载的压缩包。里面有非常详细的例子程序。
6.再这里最后强调一下,css文件的导入。记住。他需要2个css文件。iframe.css和ui.css还有一个common.css.他们的路径位置是有关联的、结构目录请参考我附件下面的图片。已经
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>xhEditor demo4 : </title>
- <link rel="stylesheet" href="http://localhost:8080/TMS/css/common.css" type="text/css" media="screen" />
- <script type="text/javascript" src="js/jquery.js"></script>
- <script type="text/javascript" src="js/xheditor-zh-cn.min.js?v=1.0.0-final"></script>
- <script type="text/javascript">
- $(pageInit);
- function pageInit(){
- $('#elem1').xheditor({skin:'vista',upImgUrl:'http://localhost:8080/TMS/Resource_upload'});
- }
- </script>
- </head>
- <body>
- <textarea id="elem1" name="elm1" rows="8" cols="80" style="width: 80%">
- </textarea>
- </body>
- </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>xhEditor demo4 : </title><link rel="stylesheet" href="http://localhost:8080/TMS/css/common.css" type="text/css" media="screen" /><script type="text/javascript" src="js/jquery.js"></script><script type="text/javascript" src="js/xheditor-zh-cn.min.js?v=1.0.0-final"></script><script type="text/javascript">$(pageInit);function pageInit(){$('#elem1').xheditor({skin:'vista',upImgUrl:'http://localhost:8080/TMS/Resource_upload'});}</script></head><body><textarea id="elem1" name="elm1" rows="8" cols="80" style="width: 80%"></textarea></body></html>
- JQuery 制作的一款在线编辑器(xheditor)。兼容IE,Firefox...感觉不错
- 基于jquery的在线编辑器XHEditor
- 基于jquery的在线编辑器XHEditor
- 一个兼容FireFox与IE等主流浏览器的在线编辑器(LordEditor)
- 在线编辑器实现原理(兼容IE和FireFox)
- 在线编辑器实现原理(兼容IE和FireFox)
- WeisEditor在线文本编辑器v2.1.1 (兼容ie,firefox)
- xheditor在线编辑器的使用
- firefox兼容在线编辑器资料
- Jquery.each 兼容IE,firefox
- jquery.each兼容IE,firefox
- 在线编辑器学习-xhEditor
- 简单HTML在线编辑器实现原理(兼容IE和FireFox)(转)
- 纯CSS制作的渐变层(兼容IE/Firefox/Opera)
- js、jQuery,兼容IE与firefox火狐的回车事件
- 关于Jquery 编辑器 xhEditor的使用总结
- xheditor文字编辑器(jquery)
- IE、firefox的js兼容
- struts2 中 s:text 的使用 资源的访问 多语言实现
- 关于View in Browser
- Java报表制作(iReport+jaserReport+jFreeChart)
- 随机函数 歌德巴赫猜想
- $.get $.post $.getJSON 详解
- JQuery 制作的一款在线编辑器(xheditor)。兼容IE,Firefox...感觉不错
- Oracle TRIM函数
- linux下字符集编码转换轻松实现
- Ogitor
- linux下字符集编码转换轻松实现
- 利用Oracle的row_number() over函数消除重复的记录
- 软件需求的3个层次
- gcov的使用 收藏
- windows 2008 (R2) 建域后更改密码策略