I'm trying to open the codemirror search dialog (normally activated by pressing CTRL+F)
by pressing a button:
I tried to use
window.find()
but it does not open the dialog, it only highlights the text in the editor...
DEMO
You don't want to simulate the actual key press. Rather, simply run CodeMirror's find command using execCommand
, as in http://jsfiddle.net/cb1fd72k/1/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With