@j154004/boron-text-editor

1.2.1 • Public • Published

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 component

Signature:
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.

Readme

Keywords

none

Package Sidebar

Install

npm i @j154004/boron-text-editor

Weekly Downloads

2

Version

1.2.1

License

UNLICENSED

Unpacked Size

15.4 kB

Total Files

7

Last publish

Collaborators

  • j154004