1.2.1 • Published 6 years ago

@j154004/boron-text-editor v1.2.1

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
6 years ago

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

NameTypeDefaultDescription
onBlurfunctionCallback fired on blur of the componentSignature:function(editorState: EditorState, rawDraftContentState: object) => voideditorState:: 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:

NameDescription
editorStyles applied to the wrapper around the Draft.js Editor component.
controlsStyles applied to the wrapper around the editor controls.