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

🐛 fix(ckeditor5-react): prevent ckeditor from loading on server side #1513

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

dackmin
Copy link
Member

@dackmin dackmin commented Oct 25, 2024

CKEditor heavily relies on window without ever checking for it to not be undefined (and doesn't plan to change this anytime soon 😒 ckeditor/ckeditor5-react#36), so this loads the classic editor in a useEffect to prevent it from being imported during server-side rendering.

Copy link

vercel bot commented Oct 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
oak ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 9:38am

@dackmin dackmin merged commit b67bccd into master Oct 25, 2024
6 checks passed
@dackmin dackmin deleted the fix/ckeditor-ssr-error branch October 25, 2024 12:26
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

Successfully merging this pull request may close these issues.

2 participants