react-markdown-editor-lite
react-markdown-editor-lite copied to clipboard
setView API and undo/redo API
follow the document, I can't use setView API, i used to write like this:
mdEditor.current.setView({to:{menu:false,html:true,md:false}})
but it wont work.
Then i find the answer in #156
So i write a sand box for using setView API. You can change the view among html, markdown and htmlAndMarkdown mode. Also i realize the undo/redo API although project doesn't provide it. I hope it will help someone.
https://codesandbox.io/s/cool-sound-czfku
i find a new problem,could u please help me
@Pats666