Hi there, as part of my “Dangerzone” plugin development, I’ve been able to use a CodeMirror.Editor instance and “clear” the visible pane’s text using .setValue("")
But when I reload the note, the text is still there. So, only cm.setValue("")
doesn’t trigger the actual saving of the file to disk.
How do I do that?
For reference, here’s how I’d love it to work fully: