apeman-react-editor
apeman react package for WYSIWYG editors
Installation
$ npm install apeman-react-editor --save
Demo
Live demo is hosted on GitHub Pages.
Usage
'use strict' import React from 'react'import ApEditor ApEditorStyle from 'apeman-react-editor' const ExampleComponent = React
Components
ApEditorStyle
Props
Name | Type | Default | Description |
---|---|---|---|
style | object | {} | |
highlightColor | string | ApStyle.DEFAULT_HIGHLIGHT_COLOR | |
errorColor | string | ApStyle.ERROR_COLOR | |
backgroundColor | ApStyle.DEFAULT_BACKGROUND_COLOR |
ApEditor
Props
Name | Type | Default | Description |
---|---|---|---|
mode | string | 'javascript' | |
codemirror | object | null | |
value | string | ||
onChange | func | null | |
editorRef | func | null | |
lineNumbers | bool | false | |
error | string | object | |
onErrorTap | func | ||
spinning | bool | false |
License
This software is released under the MIT License.