{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/draft-js/issues/45","repository_url":"https://api.github.com/repos/facebook/draft-js","labels_url":"https://api.github.com/repos/facebook/draft-js/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/facebook/draft-js/issues/45/comments","events_url":"https://api.github.com/repos/facebook/draft-js/issues/45/events","html_url":"https://github.com/facebook/draft-js/issues/45","id":135802630,"number":45,"title":"Current selection DOM element","user":{"login":"sasso","id":8398242,"avatar_url":"https://avatars.githubusercontent.com/u/8398242?v=3","gravatar_id":"","url":"https://api.github.com/users/sasso","html_url":"https://github.com/sasso","followers_url":"https://api.github.com/users/sasso/followers","following_url":"https://api.github.com/users/sasso/following{/other_user}","gists_url":"https://api.github.com/users/sasso/gists{/gist_id}","starred_url":"https://api.github.com/users/sasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sasso/subscriptions","organizations_url":"https://api.github.com/users/sasso/orgs","repos_url":"https://api.github.com/users/sasso/repos","events_url":"https://api.github.com/users/sasso/events{/privacy}","received_events_url":"https://api.github.com/users/sasso/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/draft-js/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"hellendag","id":2823852,"avatar_url":"https://avatars.githubusercontent.com/u/2823852?v=3","gravatar_id":"","url":"https://api.github.com/users/hellendag","html_url":"https://github.com/hellendag","followers_url":"https://api.github.com/users/hellendag/followers","following_url":"https://api.github.com/users/hellendag/following{/other_user}","gists_url":"https://api.github.com/users/hellendag/gists{/gist_id}","starred_url":"https://api.github.com/users/hellendag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellendag/subscriptions","organizations_url":"https://api.github.com/users/hellendag/orgs","repos_url":"https://api.github.com/users/hellendag/repos","events_url":"https://api.github.com/users/hellendag/events{/privacy}","received_events_url":"https://api.github.com/users/hellendag/received_events","type":"User","site_admin":false},"assignees":[{"login":"hellendag","id":2823852,"avatar_url":"https://avatars.githubusercontent.com/u/2823852?v=3","gravatar_id":"","url":"https://api.github.com/users/hellendag","html_url":"https://github.com/hellendag","followers_url":"https://api.github.com/users/hellendag/followers","following_url":"https://api.github.com/users/hellendag/following{/other_user}","gists_url":"https://api.github.com/users/hellendag/gists{/gist_id}","starred_url":"https://api.github.com/users/hellendag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellendag/subscriptions","organizations_url":"https://api.github.com/users/hellendag/orgs","repos_url":"https://api.github.com/users/hellendag/repos","events_url":"https://api.github.com/users/hellendag/events{/privacy}","received_events_url":"https://api.github.com/users/hellendag/received_events","type":"User","site_admin":false}],"milestone":null,"comments":21,"created_at":"2016-02-23T17:21:42Z","updated_at":"2016-08-31T13:55:00Z","closed_at":"2016-03-01T22:33:47Z","body":"I am trying to get the current selection element so that I can calculate the offset from the top of the document. I would like to position buttons on the left of the cursor like used in Facebook Note editor.\r\n\r\n<img width=\"308\" alt=\"screenshot 2016-02-23 09 18 26\" src=\"https://cloud.githubusercontent.com/assets/8398242/13260012/8f953008-da0e-11e5-8389-51e658b9c1b6.png\">\r\n\r\nIs there an easy way to get the selected dom element?"},"comment":{"url":"https://api.github.com/repos/facebook/draft-js/issues/comments/243771609","html_url":"https://github.com/facebook/draft-js/issues/45#issuecomment-243771609","issue_url":"https://api.github.com/repos/facebook/draft-js/issues/45","id":243771609,"user":{"login":"jmaguirrei","id":11958637,"avatar_url":"https://avatars.githubusercontent.com/u/11958637?v=3","gravatar_id":"","url":"https://api.github.com/users/jmaguirrei","html_url":"https://github.com/jmaguirrei","followers_url":"https://api.github.com/users/jmaguirrei/followers","following_url":"https://api.github.com/users/jmaguirrei/following{/other_user}","gists_url":"https://api.github.com/users/jmaguirrei/gists{/gist_id}","starred_url":"https://api.github.com/users/jmaguirrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmaguirrei/subscriptions","organizations_url":"https://api.github.com/users/jmaguirrei/orgs","repos_url":"https://api.github.com/users/jmaguirrei/repos","events_url":"https://api.github.com/users/jmaguirrei/events{/privacy}","received_events_url":"https://api.github.com/users/jmaguirrei/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T13:55:00Z","updated_at":"2016-08-31T13:55:00Z","body":"@azangru You are welcome, glad to help! I havent finished my editor component yet, so maybe I will be trying another solutions, like yours, in the future. Keep in touch. Regards\r\n\r\n"}}
{"actor":{"display_login":"jmaguirrei"}}