1.1.2 • Published 8 years ago
editorify v1.1.2
____ ____ ____ ____ ____ ____ ____ ____ ____
||e ||||d ||||i ||||t ||||o ||||r ||||i ||||f ||||y ||
||__||||__||||__||||__||||__||||__||||__||||__||||__||
|/__\||/__\||/__\||/__\||/__\||/__\||/__\||/__\||/__\|
editorify
Overview
<textarea>
の中をいい感じに操るライブラリ。
DEMO
Usage
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="jquery.editorify.min.js"></script>
$('.editor').editorify([
['clear'],
['insert', '[](http://example.com)'],
['start'],
['right', 1],
['insert', 'Yo']
]); // [Yo](http://example.com)
OR
$('.editor')
.editorify('clear')
.editorify('insert', '[](http://example.com)')
.editorify('start')
.editorify('right', 1)
.editorify('insert', 'Yo'); // [Yo](http://example.com)
Install
$ bower install editorify
Licence
MIT
Author
1.1.2
8 years ago