Open mikeck1 opened 4 years ago
import RichTextEditor from 'react-rte'; ... const [editorValue, setEditorValue] = React.useState(RichTextEditor.createValueFromString(localPost.body, 'html')); ... const handleChange = value => { setEditorValue(value); setPost(value.toString("html")); console.log(value._cache.html) _updateLocalPost({ ...localPost, body: value._cache.html }) }; <RichTextEditor value={editorValue} onChange={handleChange} required id="body-text" name="bodyText" type="string" multiline variant="filled" style={{ minHeight: 410 }} />
"react-rte": "^0.16.1",
When I try to paste over 30+ lines of code into the text window it will lag like crazy, or freeze. Anyone else have this problem?
"react-rte": "^0.16.1",
When I try to paste over 30+ lines of code into the text window it will lag like crazy, or freeze. Anyone else have this problem?