{"action":"created","issue":{"url":"https://api.github.com/repos/adobe/brackets/issues/804","repository_url":"https://api.github.com/repos/adobe/brackets","labels_url":"https://api.github.com/repos/adobe/brackets/issues/804/labels{/name}","comments_url":"https://api.github.com/repos/adobe/brackets/issues/804/comments","events_url":"https://api.github.com/repos/adobe/brackets/issues/804/events","html_url":"https://github.com/adobe/brackets/issues/804","id":4416601,"number":804,"title":"Expose mode and getTokenAt() on editor","user":{"login":"gruehle","id":1060119,"avatar_url":"https://avatars.githubusercontent.com/u/1060119?v=3","gravatar_id":"","url":"https://api.github.com/users/gruehle","html_url":"https://github.com/gruehle","followers_url":"https://api.github.com/users/gruehle/followers","following_url":"https://api.github.com/users/gruehle/following{/other_user}","gists_url":"https://api.github.com/users/gruehle/gists{/gist_id}","starred_url":"https://api.github.com/users/gruehle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gruehle/subscriptions","organizations_url":"https://api.github.com/users/gruehle/orgs","repos_url":"https://api.github.com/users/gruehle/repos","events_url":"https://api.github.com/users/gruehle/events{/privacy}","received_events_url":"https://api.github.com/users/gruehle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/adobe/brackets/labels/low%20priority","name":"low priority","color":"DDDDDD"}],"state":"open","locked":false,"assignee":{"login":"peterflynn","id":1197510,"avatar_url":"https://avatars.githubusercontent.com/u/1197510?v=3","gravatar_id":"","url":"https://api.github.com/users/peterflynn","html_url":"https://github.com/peterflynn","followers_url":"https://api.github.com/users/peterflynn/followers","following_url":"https://api.github.com/users/peterflynn/following{/other_user}","gists_url":"https://api.github.com/users/peterflynn/gists{/gist_id}","starred_url":"https://api.github.com/users/peterflynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterflynn/subscriptions","organizations_url":"https://api.github.com/users/peterflynn/orgs","repos_url":"https://api.github.com/users/peterflynn/repos","events_url":"https://api.github.com/users/peterflynn/events{/privacy}","received_events_url":"https://api.github.com/users/peterflynn/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2012-05-04T00:26:05Z","updated_at":"2016-02-19T23:21:46Z","closed_at":null,"body":"This is related to #803\r\n\r\nWhile writing the \"Inline Editor for JavaScript functions\" and \"Inline Image Viewer\" extensions, I needed to access the \"private\" `_codeMirror` property in order to get the current mode (using `getOption(\"mode\")`) and call the `getTokenAt()` function. \r\n\r\nWe should either expose these on Editor, or consider just making the `_codeMirror` property public.\r\n"},"comment":{"url":"https://api.github.com/repos/adobe/brackets/issues/comments/186448463","html_url":"https://github.com/adobe/brackets/issues/804#issuecomment-186448463","issue_url":"https://api.github.com/repos/adobe/brackets/issues/804","id":186448463,"user":{"login":"MarcelGerber","id":2641501,"avatar_url":"https://avatars.githubusercontent.com/u/2641501?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcelGerber","html_url":"https://github.com/MarcelGerber","followers_url":"https://api.github.com/users/MarcelGerber/followers","following_url":"https://api.github.com/users/MarcelGerber/following{/other_user}","gists_url":"https://api.github.com/users/MarcelGerber/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcelGerber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcelGerber/subscriptions","organizations_url":"https://api.github.com/users/MarcelGerber/orgs","repos_url":"https://api.github.com/users/MarcelGerber/repos","events_url":"https://api.github.com/users/MarcelGerber/events{/privacy}","received_events_url":"https://api.github.com/users/MarcelGerber/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T23:21:46Z","updated_at":"2016-02-19T23:21:46Z","body":"I guess this can be closed now, as we've managed to achieve everything we need from our TokenUtils implementation.\r\nThanks for noticing, @ficristo (and yeah, it's been some time, I'm catching up with my mail again ;) )"}}