ember-ace
ember-ace copied to clipboard
Ctrl+F not working
Hi, I'm testing your plugin and it seems very useful. However, I noticed the search is not working. Do I need to use any special config? Thanks
Hi @hsborges — good question! I haven't played with search in Ace, so I'm not sure what all is involved in setting it up. I see that it's enabled in the demo on their website, though, so clearly the support exists.
A good first step would probably be to look through the API docs there or check with one of the groups on the Support page to see how to get that set up. You can get access to the Editor instance by implementing the ready action on this component to make any additional configuration changes via the core Ace APIs.
Once you have that working, I'd be happy to take a look at a PR if there are things we can do from this end to make enabling search easier 🙂
For me it was simply the extension searchbox that was missing.
I simply add to declare it in ember-cli-build.js:
ace: {
themes: [ 'chrome' ],
modes: [ 'javascript', 'json' ],
workers: [ 'javascript', 'json' ],
exts: [ 'searchbox' ]
}
No further configuration required and it worked.