{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/draft-js/issues/169","repository_url":"https://api.github.com/repos/facebook/draft-js","labels_url":"https://api.github.com/repos/facebook/draft-js/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/facebook/draft-js/issues/169/comments","events_url":"https://api.github.com/repos/facebook/draft-js/issues/169/events","html_url":"https://github.com/facebook/draft-js/issues/169","id":139014306,"number":169,"title":"Triggering mentions suggestion [Question]","user":{"login":"hingermayank","id":6342096,"avatar_url":"https://avatars.githubusercontent.com/u/6342096?v=3","gravatar_id":"","url":"https://api.github.com/users/hingermayank","html_url":"https://github.com/hingermayank","followers_url":"https://api.github.com/users/hingermayank/followers","following_url":"https://api.github.com/users/hingermayank/following{/other_user}","gists_url":"https://api.github.com/users/hingermayank/gists{/gist_id}","starred_url":"https://api.github.com/users/hingermayank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hingermayank/subscriptions","organizations_url":"https://api.github.com/users/hingermayank/orgs","repos_url":"https://api.github.com/users/hingermayank/repos","events_url":"https://api.github.com/users/hingermayank/events{/privacy}","received_events_url":"https://api.github.com/users/hingermayank/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/draft-js/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-07T15:54:54Z","updated_at":"2016-03-11T20:27:13Z","closed_at":null,"body":"Hi,\r\nI was trying to add mentions support in my editor and my approach to trigger the suggestions list was using a decorator which strategy to match regex like @[\\w]+ but for the strategy to work I also need to check if the current cursor position it is currently on should not be an entity and for the same I need selection state in my strategy and for that I need to pass my editor context which I guess is hacky.\r\n\r\nSo I was wondering how did you implement it on FB because I might be taking a wrong approach of going through decorator to render Suggestions. Any help would be appreciated.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/facebook/draft-js/issues/comments/195536300","html_url":"https://github.com/facebook/draft-js/issues/169#issuecomment-195536300","issue_url":"https://api.github.com/repos/facebook/draft-js/issues/169","id":195536300,"user":{"login":"hingermayank","id":6342096,"avatar_url":"https://avatars.githubusercontent.com/u/6342096?v=3","gravatar_id":"","url":"https://api.github.com/users/hingermayank","html_url":"https://github.com/hingermayank","followers_url":"https://api.github.com/users/hingermayank/followers","following_url":"https://api.github.com/users/hingermayank/following{/other_user}","gists_url":"https://api.github.com/users/hingermayank/gists{/gist_id}","starred_url":"https://api.github.com/users/hingermayank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hingermayank/subscriptions","organizations_url":"https://api.github.com/users/hingermayank/orgs","repos_url":"https://api.github.com/users/hingermayank/repos","events_url":"https://api.github.com/users/hingermayank/events{/privacy}","received_events_url":"https://api.github.com/users/hingermayank/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T20:27:13Z","updated_at":"2016-03-11T20:27:13Z","body":"@hellendag I have submitted the PR #199. "}}