Skip to content

Instantly share code, notes, and snippets.

@mfyz
Created January 4, 2018 04:04
Show Gist options
  • Save mfyz/f674749c04086609e8bc826652f9b832 to your computer and use it in GitHub Desktop.
Save mfyz/f674749c04086609e8bc826652f9b832 to your computer and use it in GitHub Desktop.
CodeMirror search programmatically
cmInstance.state.search = {
query: "search query",
lastQuery: null,
posFrom: null,
posTo: null,
overlay: null
};
cmInstance.execCommand('findNext');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment