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
异步从后端获取文本后不能够成功渲染,文本框始终是空的
export const Editor = () => { const [value, setValue] = useState(null); useEffect(() => { httpRequest("get", api.NoticeManage).then(response=>{ setValue(JSON.parse(response.data.text)) }) }, []) const handleChange = (value) => { setValue(JSON.stringify(value.toJS())) } return ( <ReEditor value={value} onChange={handleChange} placeholder="请输入内容" // onImageUpload={this.handleImageUpload} /> ) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
异步从后端获取文本后不能够成功渲染,文本框始终是空的
The text was updated successfully, but these errors were encountered: