主要步骤如下:
1.上传WordPaster文件夹
2.上传FCKEditor2.x插件
3.为FCKEditor2.x增加粘贴工具
4.上传文件:upload.asp,UploadClass.asp
修改upload.asp中的文件存储路径和返回图片路径:
5.修改ADMIN/edit_fckeditor.asp文件
<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>
找到以下代码
<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