textarea-indent

2019-09-13

Add a little indentation in textarea

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

HomePage

https://github.com/jiyinyiyong/textarea-indent

Repository

https://github.com/jiyinyiyong/textarea-indent.git


上一篇:cirru-script-loader
下一篇:stir-template
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部