FCKeditor usage and error handling

Source: Internet
Author: User

In the past, the text editors used in the background when using ASP for websites were all ewebeditor, which is convenient and easy to use. It is okay to embed a sentence in the webpage. It was originally intended to be used when I switched to. Net to write the background, but it was depressing that it was not supported in Firefox.

So we can only search for the dog and find that the mainstream. NET web editors currently support the following:

Cuteeditor
Http://cutesoft.net/ASP.NET%2BWYSIWYG%2BEditor/

FCKeditor
Http://ckeditor.com/

Dotnettextbox
Http://dotnettextbox.codeplex.com/

Freetextbox
Http://www.freetextbox.com/

Weiseditor
Http://www.weiseditor.com/

10 free JavaScript library text editors
Http://www.aspxcs.net/HTML/1711421053.html

You can select an editor that suits you. Now I will summarize the installation configuration of FCKeditor 2.6.6:

1. Download

Download the package from the FCKeditor official website (Click here). Note that. Net supports two packages. For details, refer to the chicken sausage on it.

2. unpackege

Decompress the package and place it in the appropriate location. Now I am using the root directory. There will also be.. net. fredck under net_2.6.3 \ bin \ release \ 2.0. copy fckeditorv2.dll to the bin folder in the root directory (note that I use Framework 2.0. If it is 1.0, copy the DLL file in the 1.0 folder)

3. Add the plugin to the

Open pirated vs 2008, open the Toolbox Panel = select items (choose items) = browse (Browse) = select bin fredck. fckeditorv2.dll. In this way, a FCKeditor plug-in will be added to your toolkit panel. You can drag the text edit box to the desired position.

 

     

    Go to the FCKeditor folder and edit the fckconfig. js file.

    1. Modify:

    VaR _ filebrowserlanguage = 'php'; // ASP | aspx | CFM | lasso | Perl | PHP | py

    VaR _ quickuploadlanguage = 'php'; // ASP | aspx | CFM | lasso | PHP

    Is:

    VaR _ filebrowserlanguage = 'aspx '; // ASP | aspx | CFM | lasso | Perl | PHP | py

    VaR _ quickuploadlanguage = 'aspx '; // ASP | aspx | CFM | lasso | PHP

    2. configuration language

    Modify:

    Fckconfig. defaultlanguage = 'en ';

    Changed:

    Fckconfig. defaultlanguage = 'zh-cn ';

    3. Configure the skin, including default, office2003, and silver style. You can use the default style.

    Fckconfig. skinpath = fckconfig. basepath + 'Skins/default /';

    4. You can use the tab key in the editor. (1 is yes, 0 is no)

    Change fckconfig. tabspaces = 0; To fckconfig. tabspaces = 1;

    5. add several common fonts:

    Fckconfig. fontnames = '; _ gb2312; Arial; Comic Sans MS; Courier New; tahoma; Times New Roman; verdana ';

    6. The default font in the editor is 12px. You can modify the style sheet to meet the requirements. Open/Editor/CSS/fck_editorarea.css and modify the font-size attribute.

     

    /********************************** Another version ** *****************************

    1. Download the compressed editor package of the current version.

    2. decompress and open the folder with the following files: FCKeditor

    3. Add "select items" in vs to load fredck. fckeditorv2.dll under the bin in this folder.

    4. Add:

    <Deleetask>
    <Add key = "FCKeditor: basepath" value = "~ /FCKeditor/"/>
    <Add key = "FCKeditor: userfilespath" value = "~ /Userfiles/"/>
    </Appsettings>

    5. Fill in the third folder FCKeditor in the figure under the project folder.

    6. Drag and Drop the online compiler that has been loaded to the vs toolbox to the desired page location. After the page is loaded, the following will appear:

    7. Complete.

    8. Possible errors:

    (1) garbled characters should appear in the editor after the page is loaded: the Web. config file is not modified. Check step 4.

    (2) Description: HTTP 404. The resource you are looking for (or one of its Dependencies) may have been removed, its name has been changed, or it is temporarily unavailable. Check the following URL and make sure it is correctly spelled.
    Request URL:/clubweb/FCKeditor/Editor/fckeditor.html
    An error occurred while introducing the FCKeditor folder directory. Check Step 5.

    A server error occurs in the "/clubweb" application. The resource cannot be found.

     

    Notes ***************

    1: When FCKeditor is input, the p tag is automatically added and replaced with <br>

    When you input text or stick it to FCKeditor and save the data to the database, the <p> </P> tag is automatically generated by default in the database. A line break is generated when the data is displayed, which affects the style,

    When the fckconfig. js page automatically outputs P, which affects the style, run the original code in the configuration file fckconfig. JS:

     FCKConfig.EnterMode = 'p' ;            // p | div | br
    FCKConfig.ShiftEnterMode = 'br' ;

     

     Fckconfig. entermode = 'br '; // P | Div | Br (Press ENTER)
    Fckconfig. shiftentermode = 'br '; // P | Div | Br (SHIFT + enter)

     

    2

    Change the toolbar order:

    Fckconfig. toolbarsets ["default"] = [
    ['Source', 'docprops', '-', 'preview', 'form', 'checkbox', 'Radio ', 'textout', 'textea ', 'select', 'button ', 'imagebutton', 'hiddenfield'],
    ['Justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'style', 'fontformat', 'fontname', 'fontsize'],
    ['Textcolor', 'bgcolor', 'bold ', 'italic', '-', 'orderedlist', 'unorderedlist', '-', 'link ', 'unlink']
    ];

    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.