ASP. NET online editor FreeTextBox and FCKeditor quick use

Source: Internet
Author: User

1. FreeTextBox (version 3.2.1)

 


[Html]
<% @ Register Assembly = "FreeTextBox" Namespace = "FreeTextBoxControls" TagPrefix = "FTB" %>

<% @ Register Assembly = "FreeTextBox" Namespace = "FreeTextBoxControls" TagPrefix = "FTB" %> 5. reference the control's html code:


[Html]
<FTB: freeTextBox Text = "" Language = "zh-CN" ToolbarStyleConfiguration = "OfficeMac" ID = "ftbContent" Width = "100%" Height = "300px" runat = "server">
</FTB: FreeTextBox>

<FTB: freeTextBox Text = "" Language = "zh-CN" ToolbarStyleConfiguration = "OfficeMac" ID = "ftbContent" Width = "100%" Height = "300px" runat = "server">
</FTB: FreeTextBox> 6. the backend page control uses the following code:


[Csharp]
FtbContent. Text = "<p> wnaghengheng </p> ";
String result = ftbContent. Text;

FtbContent. Text = "<p> wnaghengheng </p> ";
String result = ftbContent. Text;
Ii. FCKeditor (Version 2.2)

Download two zip packages fckeditor2.4.2.zip and FCKeditor. NET in 1、, and decompress the FCKeditor folder and FredCK. FCKeditorV2.dll;

2. Copy FredCK. FCKeditorV2.dll to the binfile of the project, copy the FCKeditor folder to the project root directory, and create a new Files folder in the project root directory to store Files uploaded by FCKeditor;

3. Right-click "Reference"-> "add reference"-> "Browse", find FredCK. FCKeditorV2.dll, and confirm to reference FredCK. FCKeditorV2.dll;

4. Open the project web. config and add the following three items under the <paiettings> node:


[Html]
<Add key = "FCKeditor: BasePath" value = "~ /FCKeditor/"/>
<Add key = "FCKeditor: UserFilesPath" value = "~ /Files/"/>
<Add key = "FCKeditor: UploadDeniedExtensions" value = ". php |. php3 |. php5 |. phtml |. asp |. aspx |. ascx |. jsp |. cfm |. cfc |. pl |. bat |. exe |. dll |. reg |. cgi |. cs |. vb |. asa |. cer | c. dx |. ascx |. asax |. ashx |. asmx |. java |. jsl "/>

<Add key = "FCKeditor: BasePath" value = "~ /FCKeditor/"/>
<Add key = "FCKeditor: UserFilesPath" value = "~ /Files/"/>
<Add key = "FCKeditor: UploadDeniedExtensions" value = ". php |. php3 |. php5 |. phtml |. asp |. aspx |. ascx |. jsp |. cfm |. cfc |. pl |. bat |. exe |. dll |. reg |. cgi |. cs |. vb |. asa |. cer | c. dx |. ascx |. asax |. ashx |. asmx |. java |. jsl "/> 5. Create An aspx Page and register the control first. The Code is as follows (after @ Page ):


[Html]
<% @ Register Assembly = "FredCK. FCKeditorV2" Namespace = "FredCK. FCKeditorV2" TagPrefix = "FCKeditorV2" %>

<% @ Register Assembly = "FredCK. FCKeditorV2" Namespace = "FredCK. FCKeditorV2" TagPrefix = "FCKeditorV2" %> 6. reference the control's html code:


[Html]
<FCKeditorV2: FCKeditor id = "txtBody" runat = "server" BasePath = "~ /FCKeditor/"Width =" 100% "ToolbarStartExpanded =" false "Height =" pixel PX ">
</FCKeditorV2: FCKeditor>

<FCKeditorV2: FCKeditor id = "txtBody" runat = "server" BasePath = "~ /FCKeditor/"Width =" 100% "ToolbarStartExpanded =" false "Height =" pixel PX ">
</FCKeditorV2: FCKeditor> 7. The back-end page control uses the following code:


[Html]
TxtBody. Value = "<p> wnaghengheng </p> ";
String result = txtBody. Value;

TxtBody. Value = "<p> wnaghengheng </p> ";
String result = txtBody. Value;
Iii. Effects


FreeTextBox:

 

FCKeditor:

 

Note: The two editors mentioned here use old versions, and the new versions may be different. Please note when using them!

 

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.