Jodit 编辑器我只想要我正在使用的文本区域的文本值 React js

问题描述 投票:0回答:1

我想使用 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;
reactjs frontend mern rich-text-editor jodit
1个回答
0
投票

找到方法了吗????

© www.soinside.com 2019 - 2024. All rights reserved.