draft-js-utils icon indicating copy to clipboard operation
draft-js-utils copied to clipboard

[Entity] used in [entityStyleFn] has been deprecated in favour of contentState.*

Open staradayev opened this issue 5 years ago • 0 comments

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!

staradayev avatar Mar 06 '20 15:03 staradayev