JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q39784F
  • License MIT

Make the textarea support Tab indentation.

Package Exports

  • tab-text
  • tab-text/tab-text.es.min.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tab-text) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Tab-Text

Make the textarea support Tab indentation.

Demo

Usage

npm install tab-text

useTab

import {useTab} from "tab-text";
useTab('#text');

use onKeyDown

import {onKeyDown} from "tab-text";
document.getElementById('text').addEventListener('keydown', onKeyDown);

setTabValue

import {setTabValue} from "tab-text";
setTabValue('\t');

CDN

<script src="https://cdn.jsdelivr.net/npm/tab-text"></script>
<script>console.log(window.TabText) </script>