{"action":"created","issue":{"url":"https://api.github.com/repos/gabesullice/vimsert/issues/4","labels_url":"https://api.github.com/repos/gabesullice/vimsert/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/gabesullice/vimsert/issues/4/comments","events_url":"https://api.github.com/repos/gabesullice/vimsert/issues/4/events","html_url":"https://github.com/gabesullice/vimsert/issues/4","id":86622243,"number":4,"title":"Support contentEditable elements.","user":{"login":"tandroid1","id":2850718,"avatar_url":"https://avatars.githubusercontent.com/u/2850718?v=3","gravatar_id":"","url":"https://api.github.com/users/tandroid1","html_url":"https://github.com/tandroid1","followers_url":"https://api.github.com/users/tandroid1/followers","following_url":"https://api.github.com/users/tandroid1/following{/other_user}","gists_url":"https://api.github.com/users/tandroid1/gists{/gist_id}","starred_url":"https://api.github.com/users/tandroid1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tandroid1/subscriptions","organizations_url":"https://api.github.com/users/tandroid1/orgs","repos_url":"https://api.github.com/users/tandroid1/repos","events_url":"https://api.github.com/users/tandroid1/events{/privacy}","received_events_url":"https://api.github.com/users/tandroid1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gabesullice/vimsert/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-09T14:40:49Z","updated_at":"2015-06-10T17:37:39Z","closed_at":null,"body":"Recommended by @smblott-github."},"comment":{"url":"https://api.github.com/repos/gabesullice/vimsert/issues/comments/110846909","html_url":"https://github.com/gabesullice/vimsert/issues/4#issuecomment-110846909","issue_url":"https://api.github.com/repos/gabesullice/vimsert/issues/4","id":110846909,"user":{"login":"smblott-github","id":2641335,"avatar_url":"https://avatars.githubusercontent.com/u/2641335?v=3","gravatar_id":"","url":"https://api.github.com/users/smblott-github","html_url":"https://github.com/smblott-github","followers_url":"https://api.github.com/users/smblott-github/followers","following_url":"https://api.github.com/users/smblott-github/following{/other_user}","gists_url":"https://api.github.com/users/smblott-github/gists{/gist_id}","starred_url":"https://api.github.com/users/smblott-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smblott-github/subscriptions","organizations_url":"https://api.github.com/users/smblott-github/orgs","repos_url":"https://api.github.com/users/smblott-github/repos","events_url":"https://api.github.com/users/smblott-github/events{/privacy}","received_events_url":"https://api.github.com/users/smblott-github/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T17:37:39Z","updated_at":"2015-06-10T17:37:39Z","body":"Yes.  I was going to make the same suggestion. if `document.activeElement.isContentEditable` is truthy, the grab `document.activeElement.innerHTML`.  This works.  Not sure what happens when you later write it back, but I expect it works.\r\n\r\n(Separately, I think you need a `keypress` listener or `window`.  You can't always detect what's content editable statically.  That's what we found over at Vimium.)"}}