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

Broken editor in NextJS app #894

Open
RichardSPrins opened this issue May 8, 2023 · 2 comments
Open

Broken editor in NextJS app #894

RichardSPrins opened this issue May 8, 2023 · 2 comments

Comments

@RichardSPrins
Copy link

Having an issue with broken styles in NextJS project using React-Quill v2.0.0, NextJS v12.3.0
this was working just fine a couple weeks ago, and did this intermittently when browser wasn't completely updated, but now it happens on latest version of Chrome, Firefox, and Safari.

const QuillNoSSRWrapper = dynamic(import('react-quill'), {
  ssr: false,
  loading: () => <p>Loading ...</p>,
});
<QuillNoSSRWrapper
                className="bg-white"
                theme="snow"
                modules={modules}
                formats={formats}
                onChange={(content) => {
                  dispatch({ type: 'handleInput', name: 'content', payload: content });
                }}
              />

Screen Shot 2023-05-08 at 3 58 50 PM

@DorianW
Copy link

DorianW commented May 10, 2023

In my case I had to import the styles...simply adding import 'react-quill/dist/quill.snow.css'; on top of the component file.

@RichardSPrins
Copy link
Author

ah good catch, I was sure I had done that in my _app.tsx file but I guess not 😅

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

2 participants