0.1.7 • Published 3 years ago

tcom-editor v0.1.7

Weekly downloads
37
License
MIT
Repository
-
Last release
3 years ago

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
  2. npm link to make tcom-editor avaiable in global scope
  3. In the project use tcom-editor, run npm link tcom-editor
  4. 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
  5. Run npm run build

Publish to npm

npm publish --access public

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago