我想使用 Jodit 编辑器提取文本,我知道它提供 html 作为输出,但我只需要我搜索了很多但找不到任何解决方案的文本
import { Button, Input } from "@chakra-ui/react";
import React, { useRef, useState } from "react";
import JoditEditor from "jodit-react";
function Qinp(props) {
const [inp, setinp] = useState("");
const editor = useRef(null);
return (
<div>
editor
<JoditEditor ref={editor} />
</div>
);
}
export default Qinp;
找到方法了吗????