Two Rich Text editors are recommended: NicEdit and Kindeditor.

Source: Internet
Author: User
Document directory
  • Niceditor
  • Kindeditor
  • Summary

 

Those who have worked in Web Development believe they have used Rich Text editors. Many famous CuteEditor and CKEditor have already been used. They also need to load a lot of things while being powerful.

 

The following two rich text editors are all written in JS, which are simple and lightweight.

 

NicEditor

NicEdit is a lightweight, cross-platform Inline Content Editor. NicEdit enables any element/div to be editable or converts standard TextArea to a rich text editor.

Home: http://nicedit.com/

Download: http://nicedit.com/download.php

Example: http://nicedit.com/demos.php

NicEdit is the most lightweight rich text editor I have ever seen. It involves a JS file and an image.

It is also very easy to use. You only need to add simple JS Code to the page to convert the TextBox or TextArea control into a rich text editor. The Code is as follows:

    <title></title>

<body>
<form id="form1" runat="server">
<script src="../JS/Eidtor/nicEdit.js" type="text/javascript"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function() {
new nicEditor({ fullPanel: true }).panelInstance('txtContent');
});
</script>
<asp:TextBox runat="server" ID="txtContent"
TextMode="MultiLine" Height="200px" Width="600px" ></asp:TextBox>
</form>
</body>

The running effect is as follows:

The official website version is in English version, and the font settings can only be set in English. I made a simple Chinese version for the English version and added several Chinese fonts, such

Medium text download

KindEditor

KindEditor is an open-source HTML visual editor that allows users to obtain what they see and what they get on their websites. It is compatible with mainstream browsers such as IE, Firefox, Chrome, Safari, and Opera. KindEditor is written in JavaScript and can be seamlessly integrated with Java,. NET, PHP, ASP, and other programs. This is an introduction on the official website.

Home: http://www.kindsoft.net/index.php

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

Example: http://www.kindsoft.net/demo.php

Kindeditor requires a lot more files than niceditor, but the size is only several hundred kb, which is the file structure.

Use Code

    <title></title>

<body>
<form id="form1" runat="server">
<script charset="utf-8" src="../JS/KindEditor/kindeditor-min.js"
             type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
KE.show({
id: 'txtContent',
resizeMode: 1,
allowPreviewEmoticons: false,
allowUpload: false,
});
</script>
<textarea cols="60" id="txtContent" style="width: 600px; height: 300px;" runat="server"
readonly="readonly"></textarea>
</form>
</body>

The running effect is as follows:

 

Summary

The reason for choosing these two rich text editors is:
1 is written in JS, which is easier to use and does not need to reference DLL.

2 is very small.

3. You can directly convert the existing textbox or textarea into a rich text editor.

 

Compared with kindeditor, niceditor is not very mature. In one of my recent demands, I did not meet either of them. Finally, I chose kindedior.

1 The textbox width can only be set to the width of a fixed value. If it is set to a percentage, for example, 100%, it will be displayed in Some browsers.

2. It seems that the editor editing function has not been disabled, or I have not found the setting method.

 

Source: http://www.cnblogs.com/oec2003/archive/2010/09/05/1818375.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.