# content-edit

> tools for content editable elements

Latest version **1.0.0** (published 2015-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install content-edit
pnpm add content-edit
yarn add content-edit
bun add content-edit
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-10-22 |
| First published | 2015-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Steven Iseki |
| Maintainers | steveniseki |
| Keywords | content editable, content-editable, content-edit, editable |

## Links

- npm: https://www.npmjs.com/package/content-edit
- Repository: https://github.com/StevenIseki/content-edit
- Homepage: https://github.com/StevenIseki/content-edit.git
- Issues: https://github.com/StevenIseki/content-edit/issues
- npm.io page: https://npm.io/package/content-edit

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-10-22

## README

## content-edit

tools for content editable elements. Inserting html, removing html, position caret, etc...

Thanks to [tim down](https://github.com/timdown) and his [rangy module](https://github.com/timdown/rangy) as most of the code is based on his work.

``` js
var contentEdit = require('content-edit');

var el = document.getElementById("content");
contentEdit.placeCaretAtStart(el);
```

## Development

make sure you have babel installed globally to compile the `src` directory to the `lib` directory.

`npm install --global babel`

    npm run build

## Running Tests server side

**modify test.js for any tests**

    npm install
    npm test

## Running Tests client side

**modify test.js for any tests**

make sure you have webpack installed globally

`npm install webpack -g`

compile test.js to a bundle with webpack

	webpack ./test/test.js ./test/test-bundle.js

open test.html to view the tests in the browser

## License

[MIT](http://isekivacenz.mit-license.org/)

---
_Source: https://npm.io/package/content-edit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
