Skip to content

Commit 0486526

Browse files
committed
use react-quill-new instead of react-quill for compatibility with latest version
1 parent 76237c7 commit 0486526

File tree

3 files changed

+140
-150
lines changed

3 files changed

+140
-150
lines changed

components/RichTextEditor/RichTextEditor.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use client';
22

3-
import React, { useMemo, useState } from 'react';
43
import dynamic from 'next/dynamic';
5-
import 'react-quill/dist/quill.snow.css';
4+
import React, { useMemo, useState } from 'react';
5+
import 'react-quill-new/dist/quill.snow.css';
66

77
interface RichTextEditorProps {
88
value: string;
@@ -29,7 +29,7 @@ const RichTextEditor: React.FC<RichTextEditorProps> = ({
2929
// Dynamically import ReactQuill to avoid SSR issues
3030
const ReactQuill = useMemo(
3131
() =>
32-
dynamic(() => import('react-quill'), {
32+
dynamic(() => import('react-quill-new'), {
3333
ssr: false,
3434
loading: () => <div className="h-40 animate-pulse bg-gray-100 rounded" />,
3535
}),

0 commit comments

Comments
 (0)