How do I reset the editor without losing the plugins?
See original GitHub issueHow do I reset the editor without losing the plugins? For example
reset(){
this.setState({
editorState: EditorState.createEmpty()
})
}
this resets the editor but loses the decorators
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:13 (4 by maintainers)
Top Results From Across the Web
How to Reset a WordPress Site With or Without a Plugin
1. Go to Tools > WP Reset. · 2. Click the Tools tab. · 3. Click the link labelled “Delete Themes.” · 4....
Read more >making an edit without plugins! || editing challenge #1
When was the last time you made an edit without plugins ? Can't remember? Neither can I!In today's video, I decided to challenge...
Read more >Restore The Classic WordPress Editor In Two Steps
First, go to Dashboard > Plugins > Add New. Then, install and activate the Classic Editor plugin from the repository. If you had...
Read more >How to Completely Reset Your WordPress Website Without ...
How to Reset Your WordPress Website Without a Plugin · Step 1: Delete the Database · Step 2: Create a New Database ·...
Read more >how to reset vim's settings (including plugins, .vimrc file) ...
If the problem is to lose the current state of tabpages, ... This command saves your current editing session, restarts Vim and restores...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks. Its working now.
You have to push onto your existing editorState. So first you must create a contentState and then use the push method from EditorState to create a new EditorState that preserves your old editorState’s plugins.
See this for more info: https://facebook.github.io/draft-js/docs/api-reference-editor-state.html#push