阿赛在线html编辑器,kindeditor

KindEditor

KindEditor is a lightweight, Open Source(LGPL), cross browser, web based WYSIWYG HTML editor, easy to integrate with all of server side language such as Java, .NET, PHP, ASP, Python, Perl and Ruby.

Features

Lightweight: Only 28KB after gziped.

Cross browser: Supports IE6-IE9, Firefox, Chrome, Safari and Opera.

Customizable: Easy to change themes and plugins.

Examples

Downloads

Installation

Download the latest version of the editor.

Extract the downloaded archive to a directory called kindeditor in the root of your website.

Insert the following code fragment into your page.

KindEditor.ready(function(K) {

window.editor = K.create('#editor_id', {

langType : 'en'

});

});

Fetch HTML data.

html = editor.html();

Synchronize HTML data to the textarea

editor.sync();

html = document.getElementById('editor_id').value; // Native API

html = K('#editor_id').val(); // KindEditor Node API

html = $('#editor_id').val(); // jQuery API

Set HTML data to KindEditor

editor.html('HTML code');

For more information, please visit http://kindsoft.net/docs/ (Chinese)

Build code

ant

Will combine, preprocess and minify the codes in the src directory into kindeditor.js and kindeditor-min.js.

ant all

Will combine, preprocess and minify the codes in the src and plugins directory into kindeditor-all.js and kindeditor-all-min.js.

ant zip

Will create a zip file of the current repository code. The zip file will be placed in the dist directory.

Compatible

Internet Explorer 6+

Mozilla Firefox 3+

Chrome 3+

Safari 4+

Opera 10+

Contributors

Timon Lin

daif alotaibi (http://daif.net/) : Arabic Translation

fisker (https://github.com/fisker) : QQ style theme

composite (https://github.com/composite) : Korean Translation

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值