# ebx-react-contenteditable

> React component representing a with editable contents

Latest version **2.0.7** (published 2018-04-26) ·  Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install ebx-react-contenteditable
pnpm add ebx-react-contenteditable
yarn add ebx-react-contenteditable
bun add ebx-react-contenteditable
```

## 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 | 2.0.7 |
| Published | 2018-04-26 |
| First published | 2018-04-26 |
| Weekly downloads | 0 |
| License |  Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 22.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ophir LOJKINE |
| Maintainers | echobox |
| Keywords | react-component, contenteditable, editable, html, react |

## Links

- npm: https://www.npmjs.com/package/ebx-react-contenteditable
- Repository: https://github.com/ebx/ebx-react-contenteditable
- Homepage: https://github.com/ebx/ebx-react-contenteditable#readme
- Issues: https://github.com/ebx/ebx-react-contenteditable/issues
- npm.io page: https://npm.io/package/ebx-react-contenteditable

## Recent versions

- 2.0.7 (latest) — 2018-04-26

## README

# react-contenteditable

React component for a div with editable contents

## Install

```sh
npm install react-contenteditable
```

## Usage

```javascript
import ContentEditable from "react-contenteditable";

class MyComponent extends React.Component {
  constructor() {
    super();
    this.state = { html: "<b>Hello <i>World</i></b>" };
  }

  handleChange = evt => {
    this.setState({ html: evt.target.value });
  };

  render = () => {
    return (
      <ContentEditable
        html={this.state.html} // innerHTML of the editable div
        disabled={false} // use true to disable edition
        onChange={this.handleChange} // handle innerHTML change
        placeholder="Enter text..." // placeholder text
      />
    );
  };
}
```

## Structure of this repository

* [`lib/`](https://github.com/ebx/ebx-react-contenteditable/tree/master/lib) compiled javascript, usable directly in the browser
* [`src/`](https://github.com/ebx/ebx-react-contenteditable/tree/master/src) source javascript. Uses JSX and ES6.

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