tcom-editor
v0.1.7
Published
A custom editor of tinyMCEditor, packed for ReactJs ### Install guide 1. Run `npm i tcom-editor` ### Example Import first ``` import Editor from "tcom-editor"
Downloads
9
Readme
Tcom Editor
A custom editor of tinyMCEditor, packed for ReactJs
Install guide
- 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 editorheight
: number of pixels height of editorinitialValue
: initial value for editorhandleChange
:(value) => void
retrieve current value of editorreference
:(ref) => void
retrieve reference of editor. After havingref
, callref.getHtmlEncode()
to get value of editor
Development guide
npm i
npm link
to maketcom-editor
avaiable in global scope- In the project use
tcom-editor
, runnpm link tcom-editor
- In source code of
tcom-editor
, runnpm link ../path-to-project/node_modules/react
andnpm link ../path-to-project/node_modules/react-dom
- Run
npm run build
Publish to npm
npm publish --access public