draft-js-utils
draft-js-utils copied to clipboard
[Entity] used in [entityStyleFn] has been deprecated in favour of contentState.*
I was surprised, rudely surprised with entityStyleFn, which doesn't work, if you will use actual Draft.js version with entities (https://draftjs.org/docs/advanced-topics-entities).
This happens because of old Entities that was deprecated in Jun 2018. Again, from docs https://draftjs.org/docs/api-reference-entity/#create-deprecated-in-favour-of-contentstatecreateentity
So, only old-way created entity will work and fire entityStyleFn. But old-way created entity has been deprecated.
Can you please update draft-js-utils? Thank you!