# yach.open.draft-edit

> Rich Text Editor Based On Draft.js

Latest version **0.0.3** (published 2021-06-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install yach.open.draft-edit
pnpm add yach.open.draft-edit
yarn add yach.open.draft-edit
bun add yach.open.draft-edit
```

## 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.0.3 |
| Published | 2021-06-16 |
| First published | 2021-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 757.9 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Author | yach |
| Maintainers | guozhengzhong |
| Keywords | draft, braft-editor, rich edit, text |

## Links

- npm: https://www.npmjs.com/package/yach.open.draft-edit
- npm.io page: https://npm.io/package/yach.open.draft-edit

## Dependencies (9)

- [draft-js](https://npm.io/package/draft-js.md) ^0.10.3
- [immutable](https://npm.io/package/immutable.md) ~3.7.4
- [braft-utils](https://npm.io/package/braft-utils.md) ^3.0.8
- [braft-finder](https://npm.io/package/braft-finder.md) ^0.0.19
- [braft-convert](https://npm.io/package/braft-convert.md) ^2.3.0
- [draft-convert](https://npm.io/package/draft-convert.md) ^2.0.0
- [draftjs-utils](https://npm.io/package/draftjs-utils.md) ^0.9.4
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0
- [draft-js-multidecorators](https://npm.io/package/draft-js-multidecorators.md) ^1.0.0

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 0.0.3 (latest) — 2021-06-16
- 0.0.2 — 2021-06-15
- 0.0.1 — 2021-06-15

## README

# yach

## edit base on draft

## by `braft-editor`

## install

```sh
npm i yach.page.usage.statistics
```

## use

```js
import React from "react";
import "yach.open.draft-edit/dist/index.css";
import Editor from "yach.open.draft-edit";

export default class PageDemo extends React.Component {
  state = {
    editorState: Editor.createEditorState(null),
  };

  render() {
    return (
      <Editor value={this.state.editorState} onChange={this.handleChange} />
    );
  }

  handleChange = (editorState) => {
    this.setState({ editorState });
  };
}
```

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