Skip to content
js-utilities / v2

codeInput

Last updated:

On this page

Enables tab input in textareas for code input. To use the module, import it and initialize like so.

import { codeInput } from '@javaabu/js-utilities';

codeInput.init();

.code-text

When you use code-text class on textarea inputs, it will input tabs instead of tabbing to the next input when the tab key is pressed when typing into the textarea.

<textarea name="analytics_script" class="code-text">
</textarea>
Documentation
All packages

javaabu/js-utilities

Source on GitHub