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

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

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

你可能感兴趣的:(xheditor)