Steps to replicate the issue (include links if applicable):
- Enable CodeMirror 6 and open an edit page
- Open the search panel, search something and then close the panel
- Select some text, and open the search panel again
What happens?:
The search string is not automatically updated, which is different from CodeMirror's native search panel implementation.
What should have happened instead?:
The search string should be automatically updated.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):