Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
staradayev opened this issue Mar 6, 2020 · 0 comments

Comments

@staradayev
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant