当前位置: 移动技术网 > IT编程>开发语言>.net > FCKeditor在asp.net中的使用

FCKeditor在asp.net中的使用

2018年03月20日  | 移动技术网IT编程  | 我要评论

包叙定,怀孕初期有什么症状,地理学家

1.引入FredCK.FCKeditorV2.dll文件
<!--StartFragment -->
 
2.在aspx页面中托人
Java代码 
 <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server"> 
 </FCKeditorV2:FCKeditor> 
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /> 
 
3.把下载的FCK中的fckeditor这个文件夹全部放入项目中
4.修改Web.config文件//www.heatpress123.net
Java代码 
<configuration> 
    <system.web> 
        <compilation debug="true" targetFramework="4.0" /> 
 
        <span style="background-color: #ff0000;"><httpRuntime requestValidationMode="2.0"/> 
        <pages validateRequest="false"/></span> 
    </system.web> 
    <span style="background-color: #ff0000;"><appSettings> 
        <add key="FCKeditor:UserFilesPath" value="/upload"/> 
    </appSettings></span> 
</configuration> 
 
5.修改fckeditor文件夹下的fckconfig.js
Java代码 
var _FileBrowserLanguage    = '<span style="background-color: #ff0000;">aspx</span>' ;  // asp | aspx | cfm | lasso | perl | php | py 
var _QuickUploadLanguage    = '<span style="background-color: #ff0000;">aspx</span>' ;  // asp | aspx | cfm | lasso | perl | php | py 
 
6.修改fckeditor\editor\filemanager\connectors\aspx文件夹下的config.ascx
Java代码 
private bool CheckAuthentication() 
    { 
         return<span style="background-color: #ff0000;"> true</span>; 
    } 
 
Java代码 :
public override void SetConfig() 
    { 
        // SECURITY: You must explicitly enable this "connector". (Set it to "true"). 
        Enabled = CheckAuthentication(); 
 
        // URL path to user files. 
        UserFilesPath = <span style="background-color: #ff0000;">"/upload</span>/"; 
 到此,上传图片的问题就可以解决了!!!

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网