Notify President Madagascar

    draft-js-multidecorators

    1.0.0 • Public • Published

    draft-js-multidecorators

    Build Status NPM version

    Combine multiple Draft's decorators into one.

    Installation

    $ npm install draft-js-multidecorators
    

    Usage

    var Draft = require('draft-js');
    var MultiDecorator = require('draft-js-multidecorators');
     
    var decorator = new MultiDecorator([
        new SomeCustomDecorator(),
     
        // This decorator will have more priority:
        new Draft.CompositeDecorator([ ... ])
    ]);
     
    var editorState = Draft.EditorState.createEmpty(decorator)

    Keywords

    Install

    npm i draft-js-multidecorators

    DownloadsWeekly Downloads

    6,519

    Version

    1.0.0

    License

    Apache-2.0

    Last publish

    Collaborators

    • samypesse