textarea-indent

2019-09-13 admin

textarea-indent是什么

什么是textarea-indent,Add a little indentation in textarea

textarea-indent使用教程帮助文档

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

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-75052.html

文章标题:textarea-indent

回到顶部