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


    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";     // 上传文件保存路径,结尾不要带/
     
    完毕!
     
  • 相关阅读:
    Linux性能及调优指南(翻译)之Linux内存架构
    dtrace4linux
    perlchina2016 大会
    GO 语言圣经 -在线阅读
    dtrace4linux_Example
    hellogcc -100GDB技巧
    ITGEGE在线教育
    编译系统透视:图解编译原理
    C 高级编程5 IO与文件权限
    C 高级编程4 makefile 与 IO
  • 原文地址:https://www.cnblogs.com/zengxiangzhan/p/2118968.html
Copyright © 2020-2023  润新知