Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yanickrochon/jquery.uix.synthed

Yet another lightweight markup language editor using jQuery
https://github.com/yanickrochon/jquery.uix.synthed

Last synced: about 1 month ago
JSON representation

Yet another lightweight markup language editor using jQuery

Awesome Lists containing this project

README

        

jQuery UIx SynthEd
==============
Version 0.1 (alpha)

Introduction
------------

Synthetic Editor (SynthEd) is a markup language editor using jQuery and jQuery UI themes ready. It is fully customizable and
can be used with just about *any* markup parser. It's smart update system automatically triggers the parsing event (that can
be stoped through `synthedbeforeparse` and `synthedparsed` jQuery events bound to the textarea) in a fully configurable way.
This widget can even be used without any parser, as a live textarea, automatically notifying any listeners about changes.

This widget is fully functional as it is, however it has only been tested on IE9, FF and Chrome. Feedbacks are welcome!

Requirements
------------

* jQuery 1.7.2+
* jQuery UI 1.8+

Usage
-----

// transform the specified textarea into a textile markup editor (require ./parsers/textile.js)
$('#textarea').synthed({ parser: 'textile' });

// insert and select text (last arguments reposition selection relative to it's original location)
$('textarea').synthed('insert', '*Specify text*', 1, 13);

// restore original element behaviour
$('textarea').synthed('destroy');