Use of FCKeditor in asp.net

Source: Internet
Author: User

1. Introduce the FredCK. FCKeditorV2.dll File
<! -- StartFragment -->
 
2. Upload on the aspx page
Java code
<FCKeditorV2: FCKeditor ID = "FCKeditor1" runat = "server">
</FCKeditorV2: FCKeditor>
<Asp: Button ID = "Button1" runat = "server" Text = "Button" onclick = "button#click"/>
 
3. Put all the fckeditor folders in the downloaded FCK into the project.
4. Modify the Web. config file // www.heatpress123.net
Java code
<Configuration>
<System. web>
<Compilation debug = "true" targetFramework = "4.0"/>
 
<Span style = "background-color: # ff0000;"> <Pages validateRequest = "false"/> </span>
</System. web>
<Span style = "background-color: # ff0000;"> <appSettings>
<Add key = "FCKeditor: UserFilesPath" value = "/upload"/>
</AppSettings> </span>
</Configuration>
 
5. Modify fckconfig. js in the fckeditor folder.
Java code
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. Modify config. ascx in the fckeditor \ editor \ filemanager \ connectors \ aspx folder.
Java code
Private bool CheckAuthentication ()
{
Return <span style = "background-color: # ff0000;"> true </span>;
}
 
Java code:
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> /";
At this point, the problem of uploading images can be solved !!!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.