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: Editor Module. ReferenceError: document is not defined. #8817 #14325

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

nejat-njonjo
Copy link
Contributor

Defect Fixes #8817

This PR is enhancing changes made on PR #14232. During SSR build this issue #8817 still occurs.

So it seems the issue comes from importing quill on the top level, which somehow automatically initializes the instance of Quill.

import Quill from 'quill'

So on this update, I have removed the import from the top level to dynamically import quill when it's in browser mode.

I also introduced afterNextRender because render callbacks never run during server-side rendering or build-time pre-rendering.

@cetincakiroglu cetincakiroglu merged commit 7f9de49 into primefaces:master Mar 22, 2024
6 checks passed
@stefanbildl
Copy link
Contributor

This fix seems to cause the following issue: #16825

Seems like the delayedCommand() call was removed in this commit.

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.

EditorModule doesn't support SSR
3 participants