{"action":"created","issue":{"url":"https://api.github.com/repos/daviferreira/medium-editor/issues/570","labels_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/570/labels{/name}","comments_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/570/comments","events_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/570/events","html_url":"https://github.com/daviferreira/medium-editor/issues/570","id":69593780,"number":570,"title":"Editor loses focus when anchor is directly injected into content.","user":{"login":"NoelBaron","id":6867744,"avatar_url":"https://avatars.githubusercontent.com/u/6867744?v=3","gravatar_id":"","url":"https://api.github.com/users/NoelBaron","html_url":"https://github.com/NoelBaron","followers_url":"https://api.github.com/users/NoelBaron/followers","following_url":"https://api.github.com/users/NoelBaron/following{/other_user}","gists_url":"https://api.github.com/users/NoelBaron/gists{/gist_id}","starred_url":"https://api.github.com/users/NoelBaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoelBaron/subscriptions","organizations_url":"https://api.github.com/users/NoelBaron/orgs","repos_url":"https://api.github.com/users/NoelBaron/repos","events_url":"https://api.github.com/users/NoelBaron/events{/privacy}","received_events_url":"https://api.github.com/users/NoelBaron/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/daviferreira/medium-editor/labels/brainstorm","name":"brainstorm","color":"fbca04"},{"url":"https://api.github.com/repos/daviferreira/medium-editor/labels/contenteditable","name":"contenteditable","color":"c7def8"},{"url":"https://api.github.com/repos/daviferreira/medium-editor/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-20T14:03:29Z","updated_at":"2015-05-06T16:31:31Z","closed_at":null,"body":"I've successfully implemented At.JS with medium-editor, but there is one small wrinkle I have yet to iron out. Once a template (usually a non-editable span) is pasted into the editor, the editor loses focus and the user must click on the editor again to regain caret position.  \r\n\r\nHave you exposed a way for us to programmatically refocus the user's last known cursor position? At.JS has an insert event, but I haven't figured out how to refocus on the editor.\r\n\r\nAt.js: https://github.com/ichord/At.js\r\n\r\nPs. If you know of a better tagging plugin that works well with medium, I'd appreciate a url! \r\n\r\n**UPDATE**\r\nDiscovered the cause of this behavior here: https://github.com/daviferreira/medium-editor/issues/570#issuecomment-94722862"},"comment":{"url":"https://api.github.com/repos/daviferreira/medium-editor/issues/comments/99530537","html_url":"https://github.com/daviferreira/medium-editor/issues/570#issuecomment-99530537","issue_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/570","id":99530537,"user":{"login":"nmielnik","id":2444240,"avatar_url":"https://avatars.githubusercontent.com/u/2444240?v=3","gravatar_id":"","url":"https://api.github.com/users/nmielnik","html_url":"https://github.com/nmielnik","followers_url":"https://api.github.com/users/nmielnik/followers","following_url":"https://api.github.com/users/nmielnik/following{/other_user}","gists_url":"https://api.github.com/users/nmielnik/gists{/gist_id}","starred_url":"https://api.github.com/users/nmielnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmielnik/subscriptions","organizations_url":"https://api.github.com/users/nmielnik/orgs","repos_url":"https://api.github.com/users/nmielnik/repos","events_url":"https://api.github.com/users/nmielnik/events{/privacy}","received_events_url":"https://api.github.com/users/nmielnik/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T16:31:31Z","updated_at":"2015-05-06T16:31:31Z","body":"@NoelBaron did you ever have any luck with this?"}}