Word图片上传控件整合文档(Z-Blog)-Xproer.WordPaster

1.1. 与ZBlog整合

主要步骤如下:

1.上传WordPaster文件夹

Word图片上传控件整合文档(Z-Blog)-Xproer.WordPaster_第1张图片

2.上传FCKEditor2.x插件

Word图片上传控件整合文档(Z-Blog)-Xproer.WordPaster_第2张图片

3.为FCKEditor2.x增加粘贴工具

Word图片上传控件整合文档(Z-Blog)-Xproer.WordPaster_第3张图片

Word图片上传控件整合文档(Z-Blog)-Xproer.WordPaster_第4张图片

Word图片上传控件整合文档(Z-Blog)-Xproer.WordPaster_第5张图片

4.上传文件:upload.asp,UploadClass.asp

Word图片上传控件整合文档(Z-Blog)-Xproer.WordPaster_第6张图片

修改upload.asp中的文件存储路径和返回图片路径:

Word图片上传控件整合文档(Z-Blog)-Xproer.WordPaster_第7张图片

5.修改ADMIN/edit_fckeditor.asp文件

Word图片上传控件整合文档(Z-Blog)-Xproer.WordPaster_第8张图片

Word图片上传控件整合文档(Z-Blog)-Xproer.WordPaster_第9张图片

<head>

     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

     <meta http-equiv="Content-Language" content="<%=ZC_BLOG_LANGUAGE%>" />

     <link rel="stylesheet" rev="stylesheet" href="../CSS/admin.css" type="text/css" media="screen" />

     <link type="text/css" rel="stylesheet" href="../WordPaster/css/ui-lightness/jquery-ui-1.8.11.custom.css" media="screen" />

     <link rel="stylesheet" rev="stylesheet" href="../WordPaster/css/WordPaster.css" type="text/css" media="screen" />

     <link type="text/css"  rel="stylesheet" href="../CSS/jquery.bettertip.css"media="screen">

     <script language="JavaScript" type="text/javascript" src="../script/common.js"></script>

     <script language="JavaScript" type="text/javascript" src="../admin/FCKeditor/fckeditor.js"></script>

    <script language="javascript" type="text/javascript" src="../WordPaster/js/jquery.min.js"></script>

     <script language="javascript" type="text/javascript" src="../WordPaster/js/jquery-ui-1.8.11.custom.min.js"></script>

     <script language="JavaScript" type="text/javascript" src="../WordPaster/js/WordPaster.js" charset="utf-8"></script>

     <script type="text/javascript" language="JavaScript" src="../script/jquery.bettertip.pack.js"></script>

     <script type="text/javascript" language="JavaScript" src="../script/jquery.tagto.js"></script>

     <script type="text/javascript" language="JavaScript" src="../script/jquery.textarearesizer.compressed.js"></script>

    <script type="text/javascript">

    //word图片上传控件

    var pstMgr = null;

   

        (function($){

            $(document).ready(function(){

                   $("#ulTag").tagTo("#edtTag");

                   //word图片上传控件

                   pstMgr.Init(FCKeditorAPI.GetInstance('txaContent'));

               });   

        })(jQuery);

    </script>

     <title><%=BlogTitle%></title>

</head>

Word图片上传控件整合文档(Z-Blog)-Xproer.WordPaster_第10张图片

找到以下代码

<script>

     pasterMgr = new PasterManager();

     pasterMgr.Config["EncodeType"] = "GB2312";

     pasterMgr.Config["PostUrl"] = "http://www.ncmem.com/blog/asp/upload.asp";

     pasterMgr.Load();//加载控件

    

     objActive="txaContent";

5.上传文件:upload.asp, UpLoadClass.asp

你可能感兴趣的:(paste)