# tcom-editor

> A custom editor of tinyMCEditor, packed for ReactJs ### Install guide 1. Run `npm i tcom-editor` ### Example Import first ``` import Editor from "tcom-editor"

Latest version **0.1.7** (published 2021-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install tcom-editor
pnpm add tcom-editor
yarn add tcom-editor
bun add tcom-editor
```

## 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.1.7 |
| Published | 2021-02-19 |
| First published | 2021-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 4 MB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | truong5x |

## Links

- npm: https://www.npmjs.com/package/tcom-editor
- npm.io page: https://npm.io/package/tcom-editor

## Dependencies (6)

- [antd](https://npm.io/package/antd.md) ^4.12.0
- [axios](https://npm.io/package/axios.md) ^0.21.1
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.5
- [striptags](https://npm.io/package/striptags.md) ^3.1.1
- [@ant-design/icons](https://npm.io/package/@ant-design/icons.md) ^4.4.0
- [@tinymce/tinymce-react](https://npm.io/package/@tinymce/tinymce-react.md) ^3.10.1

## Recent versions

- 0.1.7 (latest) — 2021-02-19
- 0.1.6 — 2021-02-19
- 0.1.5 — 2021-02-19
- 0.1.4 — 2021-02-18
- 0.1.3 — 2021-02-05
- 0.1.2 — 2021-02-05
- 0.1.1 — 2021-02-04
- 0.1.0 — 2021-02-04

## README

## Tcom Editor
A custom editor of tinyMCEditor, packed for ReactJs
### Install guide
1. Run `npm i tcom-editor`
### Example
Import first
```
import Editor from "tcom-editor"

```
Usage
```
<Editor
    assetPath="/editor"
/>
```
with `assetPath` is public url to the directory containing the necessary css for the editor
### Props
* `width` : number of pixels width of editor
* `height` :  number of pixels height of editor
* `initialValue` : initial value for editor
* `handleChange` : `(value) => void` retrieve current value of editor
* `reference` : `(ref) => void` retrieve reference of editor. After having `ref`, call `ref.getHtmlEncode()` to get value of editor
### Development guide
1. `npm i`
1. `npm link` to make `tcom-editor` avaiable in global scope
1. In the project use `tcom-editor`, run `npm link tcom-editor`
1. In source code of `tcom-editor`, run `npm link ../path-to-project/node_modules/react` and `npm link ../path-to-project/node_modules/react-dom`
1. Run `npm run build`
### Publish to npm
`npm publish --access public`

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