In a .NET MVC project, using the Code Mirror library in JavaScript, I encountered the following issue:
.NET Framework version - 4.5
Code Mirror version - 5.63.1
- Reopening the editor reveals previous data persisting without clearing.
- Clicking on the editor removes previously entered data.
- Below is the code snippet for clearing CodeMirror instances:
Implementation of code mirror: