现在的位置: 首页 > 综合 > 正文

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

2012年08月16日 ⁄ 综合 ⁄ 共 856字 ⁄ 字号 评论关闭
xhEditor开源HTML编辑器,精简迷你,使用简单,支持Word,基于jQuery,Ajax上传,远程抓图……

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>
 
upload.aspx   saveremoteimg.aspx 两个里面:

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

 

抱歉!评论已关闭.