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

Is the entityTypes prop required? #455

Open
htimsekim opened this issue Nov 4, 2022 · 0 comments
Open

Is the entityTypes prop required? #455

htimsekim opened this issue Nov 4, 2022 · 0 comments
Labels
question Further information is requested

Comments

@htimsekim
Copy link

I'm just trying to insert a pretty basic editor into a page. The users won't need to post any entities so I'm happy ignoring that functionality, but whenever I leave the entityTypes prop out of my DraftailEditor component I get an error in the console saying entityType is undefined. I've tried using what I understand to be the built-in entityTypes of LINK and IMAGE from ENTITY_TYPES. This gets the component to render but if you click on either of the buttons the presences of those entityTypes provide, it crashes. I've seen some demo implementations on other sites that ignore this prop, but I'm not sure how they're doing it.

@htimsekim htimsekim added the question Further information is requested label Nov 4, 2022
@htimsekim htimsekim changed the title Is the entityType prop required? Is the entityTypes prop required? Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant