JQuery 制作的一款在线编辑器(xheditor)。兼容IE,Firefox...感觉不错、
1.先去xheditor的官方网站下载压缩文件,网址:http://xheditor.com/
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>
<script type="text/javascript">$(pageInit);function pageInit(){$('#elem1').xheditor({skin:'vista',upImgUrl:upload.jsp'});}</script>
<!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>