I am working on reactjS and I am using the nextjs framework. Right now I'm working on "update module" (blog update) functionality using the QuillNoSSRWrapper
editor. At the moment, the editor is showing a value but I'm unable to type anything into the editor. How can I fix this? Here is my current code:
const Post = function(props) {
const [content, setContent] = useState('');
}
<QuillNoSSRWrapper modules={modules} theme="snow" onChange={(content) => {
setContent(content);
}} value='abc'/>
change the value to 'con.net' example:
const Post = function(props) {
const [content, setContent] = useState('abc');
return <QuillNoSSRWrapper modules={modules} theme="snow" onChange={(content) => {
setContent(content);
}} value={content}/>
}
export default Post
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.