draft-js-placeholder-plugin

0.2.0 • Public • Published

DraftJS placeholder Plugin

This is a plugin for the draft-js-plugins-editor.

Usage

import createPlaceholderPlugin from 'draft-js-placeholder-plugin';
 
const placeholderPlugin = createPlaceholderPlugin();
 

Default Config

{
  dataKey = 'placeholder',
  component = DefaultPlaceholder,
}
 

Package Sidebar

Install

npm i draft-js-placeholder-plugin

Weekly Downloads

1

Version

0.2.0

License

MIT

Last publish

Collaborators

  • simsim0709