ember-ace icon indicating copy to clipboard operation
ember-ace copied to clipboard

Ctrl+F not working

Open hsborges opened this issue 8 years ago • 2 comments
trafficstars

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

hsborges avatar May 02 '17 21:05 hsborges

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 🙂

dfreeman avatar May 02 '17 22:05 dfreeman

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.

panthony avatar Oct 30 '17 09:10 panthony