Socket
Book a DemoInstallSign in
Socket

@qnighy/draft-js-multidecorators

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qnighy/draft-js-multidecorators

Combine multiple decorators for DraftJS

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

draft-js-multidecorators

Build Status NPM version

Combine multiple Draft's decorators into one.

Installation

$ npm install @qnighy/draft-js-multidecorators

Usage

var Draft = require('draft-js');
var MultiDecorator = require('@qnighy/draft-js-multidecorators');

var decorator = new MultiDecorator([
    new SomeCustomDecorator(),

    // This decorator will have more priority:
    new Draft.CompositeDecorator([ ... ])
]);

var editorState = Draft.EditorState.createEmpty(decorator)

See also

You can use SimpleDecorator to easily build decorators.

Keywords

draft-js

FAQs

Package last updated on 12 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts