{"action":"created","issue":{"url":"https://api.github.com/repos/coderaiser/cm-searchbox/issues/1","labels_url":"https://api.github.com/repos/coderaiser/cm-searchbox/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/coderaiser/cm-searchbox/issues/1/comments","events_url":"https://api.github.com/repos/coderaiser/cm-searchbox/issues/1/events","html_url":"https://github.com/coderaiser/cm-searchbox/issues/1","id":60074069,"number":1,"title":"Find All and Replace don't work","user":{"login":"tylerlong","id":733544,"avatar_url":"https://avatars.githubusercontent.com/u/733544?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerlong","html_url":"https://github.com/tylerlong","followers_url":"https://api.github.com/users/tylerlong/followers","following_url":"https://api.github.com/users/tylerlong/following{/other_user}","gists_url":"https://api.github.com/users/tylerlong/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerlong/subscriptions","organizations_url":"https://api.github.com/users/tylerlong/orgs","repos_url":"https://api.github.com/users/tylerlong/repos","events_url":"https://api.github.com/users/tylerlong/events{/privacy}","received_events_url":"https://api.github.com/users/tylerlong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-06T08:40:34Z","updated_at":"2015-03-06T09:53:28Z","closed_at":null,"body":"I created a demo project for cm-searchbox: https://github.com/tylerlong/cm-search-demo\r\n\r\n`Find All` and `Replace` don't work, while `Find` and `Replace All` do work. \r\n\r\nPlease have a try and confirm. \r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/coderaiser/cm-searchbox/issues/comments/77533416","html_url":"https://github.com/coderaiser/cm-searchbox/issues/1#issuecomment-77533416","issue_url":"https://api.github.com/repos/coderaiser/cm-searchbox/issues/1","id":77533416,"user":{"login":"tylerlong","id":733544,"avatar_url":"https://avatars.githubusercontent.com/u/733544?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerlong","html_url":"https://github.com/tylerlong","followers_url":"https://api.github.com/users/tylerlong/followers","following_url":"https://api.github.com/users/tylerlong/following{/other_user}","gists_url":"https://api.github.com/users/tylerlong/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerlong/subscriptions","organizations_url":"https://api.github.com/users/tylerlong/orgs","repos_url":"https://api.github.com/users/tylerlong/repos","events_url":"https://api.github.com/users/tylerlong/events{/privacy}","received_events_url":"https://api.github.com/users/tylerlong/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T09:53:28Z","updated_at":"2015-03-06T09:53:28Z","body":"I got the following error when `Replace`:\r\n\r\n```\r\nsearchbox.js:296 Uncaught TypeError: Cannot read property 'replace' of undefined\r\n```\r\n\r\nThe line in error is:\r\n\r\n```\r\nthis.editor.replace(this.replaceInput.value);\r\n```\r\n\r\nIt seems that `this.editor` is undefined.\r\n\r\nChrome Browser Version 41.0.2272.76 (64-bit) on Mac OS X 10.10\r\n\r\nI am willing to make PR. First of all I need to get it up and running. I think I have something wrongly setup otherwise the `Replace` should work."}}