---
title: "fckeditor  asp 中使用的配置。"
author: "wangleide414"
date: "2013-01-12T14:57:25Z"
tags: []
categories: ["编程语言"]
slug: "fckeditor-asp"
draft: false
lastmod: "2013-01-12T14:57:25Z"
id: 1768687
url: "https://wangleide414.iteye.com/blog/1768687"
---

（1）首先拷贝 fckeditor 文件夹道根目录下。

（2）在要使用asp中的页面中引入fckediror js 文件。代码如下

 

 

```
        var oFCKeditor1 = new FCKeditor('code1',700, 500);
	oFCKeditor1.BasePath = "/wanghulu/fckeditor/";
	oFCKeditor1.ToolbarSet = 'Default';
	oFCKeditor1.ReplaceTextarea();
```

 

 (3) 这样就可以用了。只要有一个页面中有一个textarea就行

 

&lt;textarea name="d\_content" style="display:none" rows="1" cols="20"&gt;&lt;/textarea&gt;

 

（4）配置好asp 相关页面。首先打开/fckeditor/fckconfig.js

 

修改:FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/connectors/asp/upload.asp' ;======这句表示编辑器中上传图片的处理地址，其他类似

 

修改 fckeditor/editor/filemanager/connectors/asp/config.asp中的ConfigIsEnabled = True；

 

 (5)  修改结束，如不懂可以联系我。QQ 670086153