{"action":"created","issue":{"url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/514","repository_url":"https://api.github.com/repos/ProseMirror/prosemirror","labels_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/514/labels{/name}","comments_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/514/comments","events_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/514/events","html_url":"https://github.com/ProseMirror/prosemirror/issues/514","id":195472343,"number":514,"title":"Unexpected cursor behavior around inline span leaf nodes","user":{"login":"kiejo","id":152507,"avatar_url":"https://avatars.githubusercontent.com/u/152507?v=3","gravatar_id":"","url":"https://api.github.com/users/kiejo","html_url":"https://github.com/kiejo","followers_url":"https://api.github.com/users/kiejo/followers","following_url":"https://api.github.com/users/kiejo/following{/other_user}","gists_url":"https://api.github.com/users/kiejo/gists{/gist_id}","starred_url":"https://api.github.com/users/kiejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiejo/subscriptions","organizations_url":"https://api.github.com/users/kiejo/orgs","repos_url":"https://api.github.com/users/kiejo/repos","events_url":"https://api.github.com/users/kiejo/events{/privacy}","received_events_url":"https://api.github.com/users/kiejo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-14T08:48:53Z","updated_at":"2016-12-15T17:33:53Z","closed_at":null,"body":"I tested this in Chrome 54 on Linux with the current master. I could only reproduce one of the issues in Firefox. I suspect that #513 is somehow related to this whole issue.\r\n\r\nTo reproduce this I changed the `toDOM` method of the `image` node in the demo to the following:\r\n```javascript\r\ntoDOM(node) { return [\"span\", {style: 'style: background-color: #90EE90; color: black'}, 'text'] }\r\n```\r\nGiven the following DOM structure:\r\n![screenshot from 2016-12-14 09-24-08](https://cloud.githubusercontent.com/assets/152507/21174913/13b33efc-c1e0-11e6-9c0e-1216c98148ae.png)\r\nWhich gets rendered like this:\r\n![screenshot from 2016-12-14 09-27-21](https://cloud.githubusercontent.com/assets/152507/21174908/0e23b85e-c1e0-11e6-8c5e-808559739758.png)\r\n\r\nI noticed the following issues:\r\n\r\n* Place the cursor behind the green leaf node and press `Pos1` -> Cursor jumps to the start of the document instead of to the start of the line\r\n* Place the cursor somewhere in the word \"hello\" and press `DownArrow` -> Cursor jumps to the end of the line instead of to the paragraph below\r\n* Place the cursor behind the green leaf node and press `RightArrow` -> Cursor does not move instead of moving to the start of the paragraph below\r\n* Place the cursor at the start of the last paragraph and press `LeftArrow` -> Cursor jumps before the green leaf node instead of behind it (also reproducible in Firefox, but additionally the cursor disappears)\r\n* Place the cursor directly before the green leaf node and type something -> Cursor stays at the same position while text is correctly inserted\r\n* Place the cursor directly before the green leaf node and press `Backspace` -> Cursor stays at the same position while text is correctly deleted\r\n"},"comment":{"url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/comments/267390173","html_url":"https://github.com/ProseMirror/prosemirror/issues/514#issuecomment-267390173","issue_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/514","id":267390173,"user":{"login":"marijnh","id":144427,"avatar_url":"https://avatars.githubusercontent.com/u/144427?v=3","gravatar_id":"","url":"https://api.github.com/users/marijnh","html_url":"https://github.com/marijnh","followers_url":"https://api.github.com/users/marijnh/followers","following_url":"https://api.github.com/users/marijnh/following{/other_user}","gists_url":"https://api.github.com/users/marijnh/gists{/gist_id}","starred_url":"https://api.github.com/users/marijnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marijnh/subscriptions","organizations_url":"https://api.github.com/users/marijnh/orgs","repos_url":"https://api.github.com/users/marijnh/repos","events_url":"https://api.github.com/users/marijnh/events{/privacy}","received_events_url":"https://api.github.com/users/marijnh/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T17:33:52Z","updated_at":"2016-12-15T17:33:52Z","body":"Ah, I had misread in which browser you were testing. 5 and 6 happen for me on Chrome. 3 still doesn't."}}
{"actor":{"display_login":"marijnh"}}