Coder Social home page Coder Social logo

mini-editor's Introduction

Introduce

This project is a web text editor for the javascript, it can be embedded in any html page as a text editor.
It has some useful edit function, such as: bold、italic、underline、strikethrough、font、orderedlist、unorderedlist、indent、outdent、horizontalrule、link、unlink、hostimage、nwkimage、removeformat、emoticon、table, etc.
It's dependent on the jQuery library, it had been test under three broswers: IE8、chrome31 and Firefox24, it can work well, so it has a good compatibility.

Directory

images - toolbar icon
images/emoticons - emoticon icon in toolbar
lang - contury language definition in GUI

Run

You can open the test.html in web browser, it will show the appearance of the web editor.

Usage

First you need link the jquery and mini_editor files into your html page:
<script type="text/javascript" src="jquery-1.10.1.js"></script>
<link type="text/css" rel="stylesheet" href="mini_editor.css"/>
<script type="text/javascript" src="mini_editor.js"></script>

The second, you can set a frame into your html page:
<p>
<iframe src="" frameborder="0" id="editor" name="editor" width="800" height="300" style="border:1px solid #ccc;"></iframe>
</p>

Third you need set a javasript fragment under the frame html:
<script type="text/javascript">
$("#editor").mini_editor_create({lang:"ch",
image_page:"http://172.125.102.146/image.php",
text_page:"http://172.125.102.146/text1.php"});
</script>

After do above steps, the editor can work in your html page.

Design

Please refer to my blog(Chinese):
http://blog.csdn.net/weiganyi/article/details/16881213

mini-editor's People

Contributors

weiganyi avatar

Watchers

 avatar

Forkers

s-worth

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.