TypeError: moduleClass 在使用 Quill Mention 模块的 React-Quill 中不是构造函数
interface QuillEditorProps { customerId: string | string[]; updateId: string | string[]; indicatorText: string | string[]; handleEdit: string | string[]; orderId: string | string[]; productFlowId: string | string[]; leadId: string | string[]; technicalId: string | string[]; copywriterId: string | string[]; amendmentId: string | string[]; websiteContentId: string | string[]; setIsOpenReplyModel: Dispatch<SetStateAction>; setOpenQuill: Dispatch<SetStateAction>; }
const QuillEditor: React.FC = ({ customerId, setIsOpenReplyModel, setOpenQuill, updateId, productFlowId, orderId, technicalId, leadId, indicatorText, amendmentId, copywriterId, websiteContentId, handleEdit, handlesave, editContent, }: any) => { const [value, setValue] = useState(""); const [images, setImages] = useState<File[]>([]); const [isLoading, setIsLoading] = useState(false); const [fileURLs, setFileURLs] = useState<{ [key: string]: string }>({}); const { fetchCopywriterData }: any = useCopywriterStore(); const { fetchUsersData, userData } = useUserStore(); const { fetchEditorData, fetchLeadsEditorData, fetchOrderEditorData, fetchTechnicalUpdateData, fetchAmendmentUpdateData, fetchProductFlowUpdateData, fetchWebsiteContentUpdateData, orderEditorData, fetchCopywriterUpdateData, editorData, addReplyData, addUpdateData, loading, }: any = useEditorStore();
const handleClear = () => { setValue(""); };
const handleChanges = (value: string, editorData: any) => { setValue(() => editorData.getText().trim() === "" && value === "" ? "" : value ); };
const
内容来源: zenoamaro/react-quill