0.0.2 • Published 9 years ago

textarea-indent v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Add a little indentations in textarea

Demo http://repo.tiye.me/textarea-indent/

Make leading spaces of a newline based on current line, when pressing Return.

Usage

npm i --save textarea-indent
indent = require 'textarea-indent'

textarea = document.querySelector '#demo'
textarea.addEventListener 'keydown', indent.newlineHandler

Develop

  • Development
npm i
gulp html
webpack-dev-server --hot
  • Production
gulp buld
gulp rsync

License

MIT