draft-js-first-line-heading

The plugin force block style on first line for a heading/title like Medium


Keywords
draft-js, plugin, plugins, react
License
MIT
Install
npm install draft-js-first-line-heading@1.0.2

Documentation

draft-js-first-line-heading

The plugin force block style on first line for a heading/title.

Install

$ npm install draft-js-first-line-heading

Usage

import createFirstLineHeadingPLugin from 'draft-js-first-line-heading';
const firstLineHeading = createFirstLineHeadingPLugin();

...

const plugins = [firstLineHeading];

...

License

MIT