Giter Club home page Giter Club logo

kindeditor's Introduction

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

http://www.kindsoft.net/ke4/examples/multi-language.html

Downloads

http://code.google.com/p/kindeditor/downloads/list

Installation

  1. Download the latest version of the editor.

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

  3. Insert the following code fragment into your page.

    <link href="/kindeditor/themes/default/default.css" rel="stylesheet" />
    <script charset="utf-8" src="/kindeditor/kindeditor-min.js"></script>
    <script charset="utf-8" src="/kindeditor/lang/en.js"></script>
    <script>
    	KindEditor.ready(function(K) {
    		window.editor = K.create('#editor_id', {
    			langType : 'en'
    		});
    	});
    </script>
    <textarea id="editor_id" name="content" cols="100" rows="8"></textarea>
  4. Fetch HTML data.

    html = editor.html();
  5. 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
  6. 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

kindeditor's People

Contributors

luolonghao avatar wangking avatar kindeditor avatar composite avatar fisker avatar ginus avatar tsl0922 avatar wavesun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.