xhEditor开源HTML编辑器,精简迷你,使用简单,支持Word,基于jQuery,Ajax上传,远程抓图……

xhEditor for .net (支持上传,远程抓图)


For .Net:

xhEditor for .net (支持上传,远程抓图)


配置:


 <asp:TextBox ID="txtnewsContent" runat="server"  TextMode="MultiLine"></asp:TextBox>


<script src="../Scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="../xheditor/xheditor-1.1.9-zh-cn.min.js" type="text/javascript"></script>
 

<script type="text/javascript">
     $(function () {
         $('#txtnewsContent').xheditor({ skin: 'o2007blue', tools: 'mfull', urlType: 'rel',   
             upLinkUrl: "../xheditor/upload.aspx", upLinkExt: "zip,rar,txt",
             upImgUrl: "../xheditor/upload.aspx", upImgExt: "jpg,jpeg,gif,png",
             upFlashUrl: "../xheditor/upload.aspx", upFlashExt: "swf",
             upMediaUrl: "../xheditor/upload.aspx", upMediaExt: "avi",
             localUrlTest: /^https?:\/\/[^\/]*?(yxxx\.com)\//i, remoteImgSaveUrl: '../xheditor/saveremoteimg.aspx'
          });
     });
 </script>
 


  string attachdir = "../upload";     // 上传文件保存路径,结尾不要带/
 
完毕!

 

本文转自曾祥展博客园博客,原文链接:http://www.cnblogs.com/zengxiangzhan/archive/2011/07/27/2118968.html,如需转载请自行联系原作者



相关文章:

  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2021-06-04
  • 2021-12-08
  • 2021-05-03
  • 2021-12-15
猜你喜欢
  • 2021-10-06
  • 2022-03-02
  • 2022-12-23
  • 2022-02-16
  • 2022-03-05
  • 2022-12-23
相关资源
相似解决方案