dotnet Encapsulated Kindeditor Editor Control

Source: Internet
Author: User

 kindeditor is very good, no fornet expansion, I was engaged in. NET development, use it to simply encapsulate a control, drag over to use, easier to use

Kindeditor very good, just contact soon, very much like. Kindeditor site has forphp and other extensions, there is no fornet. I was doing. NET development, it simply encapsulates a control, drag over to use, easier to use. Source code for everyone, interested friends can be further improved.   1, the first use, you need to configure the web.config.   Code as follows: <configSections> <section name= "Kindeditor" type= "Kindeditorfordotnet.confighandler, Kindeditorfordotnet "/> </configSections> <KindEditor> <!--edit path--> <item key=" BasePath " Value= "~/kindeditor"/> <!--upload file path--> <item key= "Uploadpath" value= "~/upload"/> <!--topic type--> <item key= "Theme:simple" value= "FontName", ' fontsize ', ' | ', ' forecolor ', ' hilitecolor ', ' bold ', ' Italic ', ' Underline ', ' removeformat ', ' | ', ' justifyleft ', ' justifycenter ', ' justifyright ', ' insertorderedlist ', ' Insertunorderedlist ', ' | ', ' emoticons ', ' image ', ' link ', '/> <item key= ' theme:book ' value= ' ForeColor ', ' Hilitecolor ', ' bold ', ' italic ', ' underline ', ' Removeformat '/> </KindEditor>     2, and then referencing DLL files, Include Kindeditorfordotnet, LitJSON.dll   3, so that sometimes you can drag controls directly into the WebForm, if the control does not appear in theControl column, direct reference can also be     code as follows: <%@ Page language= "C #" autoeventwireup= "true" codebehind= "Default.aspx.cs" Inherits = "Editordemo._default"%> <%@ Register assembly= "kindeditorfordotnet" namespace= "Kindeditorfordotnet" tagprefix= "CC1"%> <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml "> <head runat=" Server "> <title> Untitled page </title> </head> <body> <form id= "Form1" runat= "Server" > <div> Note: The control inherits from the TextBox; You can set width, Height, Enabled (read only) <hr/> default style <br/> <cc1:editor id= "Editor1" runat= "Server" height= "100px" Width= "100%" ></cc1:editor><br/> Custom style (style from web.config configuration) <br/> <cc1:editor ID= "Editor2" runat= "Server" themetype= "simple" height= "100px" ></cc1:Editor></div> display word number (has been entered: <span class= " Count "></span>" <br/> <cc1:editor id= "Editor3" runat= "sErver "themetype=" book "afterchange=" function () {K ('. Count '). HTML (this.count (' text ')} "height=" 60px "width=" 300px " ></cc1:Editor> <hr/> </form> </body> </html>

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.