Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 287 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 287 Bytes

Indentable-textarea

Allow use of tab in <textarea>

Usage

html

<script src="indentable.js"></script>

js

const textarea = document.querySelector('textarea')
indentable(textarea, 2)
  • arg 1: textarea element
  • arg 2: space count (optional, default: 2)