# @kanety/jquery-insert-text

> Insert text to input or editable element

Latest version **0.2.0** (published 2020-07-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @kanety/jquery-insert-text
pnpm add @kanety/jquery-insert-text
yarn add @kanety/jquery-insert-text
bun add @kanety/jquery-insert-text
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2020-07-11 |
| First published | 2019-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Yoshikazu Kaneta |
| Maintainers | kanety |
| Keywords | jquery, jquery-plugin, insert text |

## Links

- npm: https://www.npmjs.com/package/@kanety/jquery-insert-text
- Repository: https://github.com/kanety/jquery-insert-text
- Homepage: https://github.com/kanety/jquery-insert-text#readme
- Issues: https://github.com/kanety/jquery-insert-text/issues
- npm.io page: https://npm.io/package/@kanety/jquery-insert-text

## Dependencies (1)

- [jquery](https://npm.io/package/jquery.md) ^3.3.1

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2020-07-11
- 0.1.0 — 2019-12-02

## README

# jquery-insert-text

Insert text to input or editable element.

## Dependencies

* jquery

## Installation

Install from npm:

    $ npm install @kanety/jquery-insert-text --save

## Usage

Insert text at caret position of `<textarea>` or `contenteditable` elements:

```html
<textarea>sample text</textarea>
<div contenteditable="true">sample text</div>
```

```javascript
$('textarea').insertText('YOUR TEXT');
$('div[contenteditable]').insertText('YOUR TEXT');
```

### Options

Insert text at first position:

```javascript
$('textarea').insertText('YOUR TEXT', 'first');
```

Insert text at last position:

```javascript
$('textarea').insertText('YOUR TEXT', 'last');
```

## License

The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

---
_Source: https://npm.io/package/@kanety/jquery-insert-text · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
