Use of freetextbox
Freetextbox is used with ASP. net html online editor, the official site is: http://www.freetextbox.com
The usage is very simple. Here is a detailed introduction!
- Download the latest http://www.freetextbox.com/download/ on the official website
- Decompress the package and introduce the DLL files under the corresponding framework to the project.
Here I will select the DLL of framework-4.0.In the project, click reference> add reference to find the DLL.
- Next, let freetextbox appear in the toolbox,
Right-click the toolbox, select items, and select
After selecting this DLL file, you will see the freetextbox control in the toolbox. Then you can replace the Textbox Control on the foreground page with freetextbox.
- Set freetextbox attributes
<Ftb: freetextbox id = "ftbcontent" runat = "server" width = "480" Height = "200" Toolbarstyleconfiguration = "Office2000" Language = "ZH-CN"> </Ftb: freetextbox> |
Pay special attention to the yellow highlighted attribute. These two are very important. The former is used to set the skin of the editor, and the latter is used to set the language of the editor.
5. Don't be too happy now, because there is another important thing you haven't done.
Configure. Net to verify HTML code to prevent cross-site scripting (xxs) attacks. The specific practices are as follows:
1) Add the validaterequest = "false" attribute to the code snippet on the top page of this page.
2) If it is. NET Framework 4.0, You need to configure the Web. config file.
Add the following content to the <system. Web> label:
<Httpruntime requestvalidationmode = "2.0" type = "codeph" text = "/codeph"/> |
6. So far, our freetextbox online editor has been configured.