GithubHelp home page GithubHelp logo

edity's Introduction

edity

A lightweight jQuery plugin for Rich Text Editing. Currently, the edity plugin uses the Tango Icon Set (http://tango.freedesktop.org/Tango_Icon_Library).

##To replace/change the images:

Replace the images with the actual command name being used (case sensitive). The images must be .png or you will need to alter the source to use the format you wish.

##Usage

$(element).edity(options);

##Properties

image_path: Default is 'images/'. You can specify any image path you want for the icons to load from.

buttons: Array of buttons you wish to use. The default value is ['bold','italic']. The items in this list MUST match actual commands (see http://help.dottoro.com/larpvnhw.php for available commands).

A valid example:

$(element).edity({
    buttons: ['bold','italic','underline']
});

##Events

onchange(original_textarea, updated_text) - This event will fire any time there is a change in the text. It will return the original textarea object in a jQuery wrapper as well as the newly updated text.

##Methods .renitialize() - Will reinitialize the editor. This is useful when using some jQuery UI methods, or any method that moves the editor around in the DOM.

Usage:

$(element).edity(opts).reinitialize();

edity's People

Contributors

xylude avatar

Watchers

 avatar James Cloos 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.