textarea-indent

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i textarea-indent

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jiyinyiyong