Hello! I’m working on creating a prototype of the p5.js Editor that uses CM6. Super excited about all of the updated web accessibility features!
In CM5, I’m able to edit multiple files with their own undo/redo stack by creating a
CodeMirror.Doc for each file, and then switching between those, depending on what the user is editing. I’m having a hard time figuring out how to do this in CM6. In the CM5 to 6 migration doc, it is suggested to create a new
EditorState, but this also resets all of the extensions which is not ideal. Any suggestions for how to handle this in CM6 would be helpful, thank you!