在官方默认的版本中,FCKeditor是不支持asp.net的(没有供asp.net调用的接口),不过有一个供asp调用的接口,我根据fckeditor.asp这个文件用C#改写了一个.Net的接口,大家有需要可以参考。


ASP.Net程式中调用FCKeditor的接口<script language="c#" runat="Server">
ASP.Net程式中调用FCKeditor的接口
public class FCKeditor

使用方法:

ASP.Net程式中调用FCKeditor的接口<%
ASP.Net程式中调用FCKeditor的接口
string sBasePath = Request.ServerVariables["PATH_INFO"];
ASP.Net程式中调用FCKeditor的接口FCKeditor oFCKeditor 
= new FCKeditor();
ASP.Net程式中调用FCKeditor的接口oFCKeditor.BasePath 
= "./FCKeditor/";
ASP.Net程式中调用FCKeditor的接口oFCKeditor.Width 
= "100%";
ASP.Net程式中调用FCKeditor的接口oFCKeditor.Height 
= "400";
ASP.Net程式中调用FCKeditor的接口oFCKeditor.ToolbarSet 
= "Basic";
ASP.Net程式中调用FCKeditor的接口oFCKeditor.Create(
"body");
ASP.Net程式中调用FCKeditor的接口
%>

 

此外,这个编辑器的asp.net用的文件上传和浏览程序也是没有的,不过可以在配置文件里把asp设置为默认脚本语言就行了,一般支持asp.net的服务器都支持asp的,不过asp.net的程序就不可能直接调用asp的类了,因此我编写了这个接口。

相关文章:

  • 2021-06-05
  • 2021-11-17
  • 2022-12-23
  • 2021-10-06
  • 2021-05-21
  • 2022-12-23
  • 2021-09-18
猜你喜欢
  • 2022-02-28
  • 2021-08-27
  • 2021-05-25
  • 2021-08-27
  • 2021-07-13
相关资源
相似解决方案