Combine multiple Draft's decorators into one.
$ npm install draft-js-multidecorators
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)
You can use SimpleDecorator to easily build decorators.