Skip to content

Commit

Permalink
Fixed examples.js for CodeMirror
Browse files Browse the repository at this point in the history
  • Loading branch information
dvd101x authored Aug 1, 2023
1 parent ced714d commit 1e28ca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,6 @@ result_unpowered2 = solveODE(dydt, [t_insertion, t_unpowered2, dt], x, method)`

function insertExampleFunc(ID) {
const mathExampleCode = mathExamples[ID];
editor.navigateFileEnd()
editor.insert('\n' + mathExampleCode)
editor.replaceRange('\n' + mathExampleCode, {line:editor.lastLine(), ch:0}, {line:editor.lastLine(), ch:0})
editor.focus()
}

0 comments on commit 1e28ca8

Please sign in to comment.