Skip to content
🎨 <textarea> の中をいい感じに操るライブラリ
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src
test
.gitignore
.jshintrc
README.md
bower.json
circle.yml
deploy.sh
gulpfile.js
jquery.editorify.min.js
package.json
testem.json

README.md

 ____  ____  ____  ____  ____  ____  ____  ____  ____
||e ||||d ||||i ||||t ||||o ||||r ||||i ||||f ||||y ||
||__||||__||||__||||__||||__||||__||||__||||__||||__||
|/__\||/__\||/__\||/__\||/__\||/__\||/__\||/__\||/__\|

editorify

gratipay

Overview

<textarea>の中をいい感じに操るライブラリ。

DEMO

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

hikarock

You can’t perform that action at this time.