draft-js-multidecorators
draft-js-multidecorators copied to clipboard
fix: pass contentState through to decorators
Adds support for DraftJS v0.10.0, which expects contentState to be passed in to each decorator.
See https://facebook.github.io/draft-js/docs/v0-10-api-migration.html and https://github.com/facebook/draft-js/blob/master/src/model/decorators/DraftDecoratorType.js.
~~Can this be merged into master please? :+1: Hm unfortunately this doenst work for me. Does it still work for you @echenley ? decorator.getDecorations is not a function
~~
Well okay, the example in the readme is just not complete. I checked tests and it needs to be new MultiDecorator([new Draft.CompositeDecorator([..])])
. Doing that it works for me :+1:
@SamyPesse, merge this please
@SamyPesse please merge matey <3
@SamyPesse please merge ;)