@j154004/boron-text-editor
v1.2.1
Published
Draft JS text editor for Boron CMS
Downloads
2
Readme
Boron Text Editor
Draft.js based rich text editor.
Installation
Install the package from npm:
npm install --save @j154004/boron-cms-editor
Usage
import BoronCMSEditor from '@j154004/boron-cms-editor';
Props
|Name|Type|Default|Description|
|---|---|---|---|
|onBlur
|function
||Callback fired on blur of the componentSignature:function(editorState: EditorState, rawDraftContentState: object) => void
editorState:: Draft.js EditorState object.rawDraftContentState: Used for storing editor state in storage layer.|
CSS API
You can override all the class names using the classes
prop with the following keys:
|Name|Description|
|---|---|
|editor
|Styles applied to the wrapper around the Draft.js Editor component.|
|controls
|Styles applied to the wrapper around the editor controls.|