0

我正在使用@draft-js-plugins/image。它在 Typescript 中显示错误为“未提供 'extraData' 的参数”。我添加了 {} 作为第三个参数。但是,它不起作用。这是代码:

const handleAddImage = () => {
        const newEditorState = imagePlugin.addImage(editorState, "https://www.draft-js-plugins.com/images/canada-landscape-small.jpg");
        setEditorState(newEditorState);
    }
4

0 回答 0