{"action":"closed","issue":{"url":"https://api.github.com/repos/stuartpb/bigtex/issues/1","labels_url":"https://api.github.com/repos/stuartpb/bigtex/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/stuartpb/bigtex/issues/1/comments","events_url":"https://api.github.com/repos/stuartpb/bigtex/issues/1/events","html_url":"https://github.com/stuartpb/bigtex/issues/1","id":55403403,"number":1,"title":"Undeletable phantom line break","user":{"login":"stuartpb","id":572196,"avatar_url":"https://avatars.githubusercontent.com/u/572196?v=3","gravatar_id":"","url":"https://api.github.com/users/stuartpb","html_url":"https://github.com/stuartpb","followers_url":"https://api.github.com/users/stuartpb/followers","following_url":"https://api.github.com/users/stuartpb/following{/other_user}","gists_url":"https://api.github.com/users/stuartpb/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartpb/subscriptions","organizations_url":"https://api.github.com/users/stuartpb/orgs","repos_url":"https://api.github.com/users/stuartpb/repos","events_url":"https://api.github.com/users/stuartpb/events{/privacy}","received_events_url":"https://api.github.com/users/stuartpb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-25T07:39:18Z","updated_at":"2015-01-29T06:36:18Z","closed_at":"2015-01-29T06:36:18Z","body":"If you hit enter and backspace from the initial state, you will reach a state where the cursor is hidden (the main contentarea is not empty).\r\n\r\nThis is due to a bug (which is probably codified as a de facto standard) in `contenteditable` where the first press of the enter key inserts two `<br>` elements at the end of contenteditable node, and the last `<br>` is ignored and can not be deleted manually.\r\n\r\nI'm not certain there's a good way to deal with this. Trimming any single `<br>` at the end of a contenteditable seems like it *could* work (as pressing enter at the end of the content inserts *two* `<br>`s), but I'm not sure that it would be safe when a trailing `<br>` is introduced by content being deleted, or some other edge case.\r\n\r\nSuperficially related: in this state, text only blinks on the left arrow, but that is actually due to a bug in the code right now, as the end-of-text comparison fails because empty nodes have an *undefined* length rather than a length of 0 (?!). (This seems like a DOM bug, and one that may or may not be codified as well.)"}}