【发布时间】:2021-10-22 11:17:29
【问题描述】:
我使用 JoditEditor 在我的代码中插入图像。但是当我尝试插入图像时,我无法将图像 URL 放入 URL 字段并且“插入”按钮不起作用。有人可以帮我吗?截图和我的代码如下:
const editor = useRef(null);
const config = {
readonly: false, // all options from https://xdsoft.net/jodit/doc/};
const [content, setContent] = useState("");
<JoditEditor
ref={editor}
value={content}
config={config}
tabIndex={1}
onBlur={(newContent) => setContent(newContent)}
onChange={(newContent) => {}}
/>
【问题讨论】: