course_web01 / frontend /src /components /RichTextEditor.tsx
trae-bot
2026032101
f45e448
'use client';
import dynamic from 'next/dynamic';
const QuillWrapper = dynamic(() => import('./QuillWrapper'), { ssr: false });
interface RichTextEditorProps {
value: string;
onChange: (value: string) => void;
placeholder?: string;
}
export default function RichTextEditor(props: RichTextEditorProps) {
return (
<div className="bg-white">
<QuillWrapper {...props} />
</div>
);
}