We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
地址:https://braft.margox.cn/demos/antd-upload 代码
uploadHandler = (param) => { if (!param.file) { return false } this.setState({ editorState: ContentUtils.insertMedias(this.state.editorState, [{ type: 'IMAGE', url: URL.createObjectURL }]) }) }
应修改为
uploadHandler = (param) => { if (!param.file) { return false } this.setState({ editorState: ContentUtils.insertMedias(this.state.editorState, [{ type: 'IMAGE', url: URL.createObjectURL(param.file) }]) }) }
The text was updated successfully, but these errors were encountered:
哈哈,一直忘记改了,不好意思
Sorry, something went wrong.
地址:https://braft.margox.cn/demos/antd-upload 代码 uploadHandler = (param) => { if (!param.file) { return false } this.setState({ editorState: ContentUtils.insertMedias(this.state.editorState, [{ type: 'IMAGE', url: URL.createObjectURL }]) }) } 应修改为 uploadHandler = (param) => { if (!param.file) { return false } this.setState({ editorState: ContentUtils.insertMedias(this.state.editorState, [{ type: 'IMAGE', url: URL.createObjectURL(param.file) }]) }) }
还有个问题。。导入的 ImageUtils 是不是没有用到
No branches or pull requests
地址:https://braft.margox.cn/demos/antd-upload
代码
应修改为
The text was updated successfully, but these errors were encountered: