Home

Awesome

Draft.js Gutter

A component that compliments Draft.js with a line number/letter gutter.

To Use

Install:

npm install draft-js draft-js-gutter --save

Example:

import React from 'react';
import ReactDOM from 'react-dom';
import { EditorGutter } from './Draft-js-gutter';

ReactDOM.render(
  <EditorGutter
    style={{border: '1px solid black'}}
    styleList={{background: '#eee'}} />
, document.getElementById('root'));

Props:

To Contribute

To Develop:

git clone https://github.com/yepnamesjames/draft-js-gutter.git
cd draft-js-gutter
npm install
npm start

Navigate to localhost:3000.

To Build:

npm run build

Things that could make this better:

License

MIT