Switched CodeMirror's search to "findPersistent" which behaves closer to browser's search.
Sometimes user will encounter browser's search anyway (if focus was outside editor, via menu, in Chrome on 2nd Ctrl-F press...).
Tuned CodeMirror to keep up to 500 off-screen lines in DOM (default was 10), allowing browser's search to Just Work accurately on all elm examples.
(not setting Infinity to avoid slow editor in case user pastes very long code. CM's builtin search is always accurate.)
Search within code was broken on https://elm-lang.org/try and all examples :crying_cat_face:
CodeMirror's builtin search bar was invisible => copied missing
dialog.css
from https://github.com/codemirror/codemirror5/blob/5.40.2/addon/dialog/dialog.cssSwitched CodeMirror's search to "findPersistent" which behaves closer to browser's search.
Sometimes user will encounter browser's search anyway (if focus was outside editor, via menu, in Chrome on 2nd Ctrl-F press...).
Tuned CodeMirror to keep up to 500 off-screen lines in DOM (default was 10), allowing browser's search to Just Work accurately on all elm examples.
(not setting Infinity to avoid slow editor in case user pastes very long code. CM's builtin search is always accurate.)