# @elanine/richtext-editor

> A richtext editor React component using in project vize.

Latest version **0.1.8** (published 2022-03-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install @elanine/richtext-editor
pnpm add @elanine/richtext-editor
yarn add @elanine/richtext-editor
bun add @elanine/richtext-editor
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2022-03-04 |
| First published | 2022-03-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | elanine |

## Links

- npm: https://www.npmjs.com/package/@elanine/richtext-editor
- npm.io page: https://npm.io/package/@elanine/richtext-editor

## Dependencies (7)

- [i18next](https://npm.io/package/i18next.md) ^19.9.1
- [react-icons](https://npm.io/package/react-icons.md) ^4.2.0
- [react-i18next](https://npm.io/package/react-i18next.md) ^11.8.8
- [i18next-chained-backend](https://npm.io/package/i18next-chained-backend.md) ^2.0.1
- [@elanine/richtext-render](https://npm.io/package/@elanine/richtext-render.md) ^0.1.0
- [i18next-localstorage-backend](https://npm.io/package/i18next-localstorage-backend.md) ^3.1.2
- [i18next-browser-languagedetector](https://npm.io/package/i18next-browser-languagedetector.md) ^6.0.1

## Recent versions

- 0.1.8 (latest) — 2022-03-04
- 0.1.7 — 2022-03-04
- 0.1.6 — 2022-03-04
- 0.1.5 — 2022-03-04

## README

# @vize/richtext-editor

A richtext editor React component using in project [vize](https://github.com/vize-team/vize)

## Preview

![](https://gw.alicdn.com/imgextra/i4/O1CN01Fg1lfa1gUulfB5DEc_!!6000000004146-0-tps-1630-1354.jpg)

## Install

```bash
npm install @vize/richtext-editor @udecode/slate-plugins slate slate-history slate-hyperscript slate-react
```

## Usage

```tsx
import { Editor, getRawValue, getHTML } from '@vize/richtext-editor';

function App() {
  return (
    <>
      <button onClick={() => console.log(getHTML())}>print html</button>
      <button onClick={() => console.log(getRawValue())}>print raw value</button>
      <Editor wrapperClassName="my-editor" initValue="<h1>hello</h1>" />
    </>
  );
}
```

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