CodeMirror 6 cm.clearHistory() equivalent

There is no such thing, directly. If you’re loading a new document, the recommendation is to create a fresh EditorState, which will start with an empty history. If you have another use case, I’m curious to hear it.

1 Like