Usage of kindeditor online HTML text editor in Asp.net

Source: Internet
Author: User

 

1. Download the editor

Download the latest kindeditor version. Open examples/index.html to view the demo.

Download Page: http://www.kindsoft.net/down.php

2. Deployment Editor

Unzip the kindeditor-x.x.x.zip file and upload all the files to your websiteProgramDirectory, such as http: // your domain name/Editor/

Note

You can delete the following directories as needed and upload them to the server.

    • ASP-ASP program
    • Asp.net-ASP. NET Program
    • Php-PHP Program
    • JSP-JSP program
    • Examples-demo File

      Effect of deleting a folder that is not needed:

       

3. Modify the HTML page
<Head runat = "server"> <title> kindeditor ASP. net Text Editor </title> <link href = "themes/default/default.css" rel = "stylesheet" type = "text/CSS"/> <link href = "plugins/code /prettify.css "rel =" stylesheet "type =" text/CSS "/> <SCRIPT src =" plugins/code/prettify. JS "type =" text/JavaScript "> </SCRIPT> <SCRIPT src =" kindeditor. JS "type =" text/JavaScript "> </SCRIPT> <SCRIPT src =" Lang/zh_cn.js "type =" text/JavaScript "> </SCRIPT> <SCRIPT type =" text/JavaScript "> kindeditor. ready (function (k) {var editor1 = K. create ('# content1', {csspath: 'ins INS/code/prettify.css ', uploadjson: 'asp. net/upload_json.ashx ', filemanagerjson: 'asp. net/file_manager_json.ashx ', allowfilemanager: True, aftercreate: function () {var self = This; K. CTRL (document, 13, function () {self. sync (); K ('form [name = example] ') [0]. submit () ;}); k.ctrl(self.edit.doc, 13, function () {self. sync (); K ('form [name = example] ') [0]. submit () ;}}}); prettyprint ();}); </SCRIPT> 

Page effect after running:

 

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.