{"action":"created","issue":{"url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/383","repository_url":"https://api.github.com/repos/ProseMirror/prosemirror","labels_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/383/comments","events_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/383/events","html_url":"https://github.com/ProseMirror/prosemirror/issues/383","id":160649575,"number":383,"title":"TransformPasted doesn't preserve line breaks when pasting text from <textarea>'s","user":{"login":"bZichett","id":7804797,"avatar_url":"https://avatars.githubusercontent.com/u/7804797?v=3","gravatar_id":"","url":"https://api.github.com/users/bZichett","html_url":"https://github.com/bZichett","followers_url":"https://api.github.com/users/bZichett/followers","following_url":"https://api.github.com/users/bZichett/following{/other_user}","gists_url":"https://api.github.com/users/bZichett/gists{/gist_id}","starred_url":"https://api.github.com/users/bZichett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bZichett/subscriptions","organizations_url":"https://api.github.com/users/bZichett/orgs","repos_url":"https://api.github.com/users/bZichett/repos","events_url":"https://api.github.com/users/bZichett/events{/privacy}","received_events_url":"https://api.github.com/users/bZichett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-16T12:29:05Z","updated_at":"2016-06-16T15:18:47Z","closed_at":null,"body":"Reproduce by finding a textarea which has line breaks such as the following text and paste into ProseMirror. \r\n\r\nTest 1\r\nTest 2\r\nTest 3\r\nTest 4\r\n\r\nNote: It **won't** work copying from this post since its rendering as HTML.   You can simply copy the text of your reply here are GitHub when it's in textarea form though.\r\n\r\nProseMirror renders: \"Test 1 Test 2 Test 3 Test 4\"\r\n\r\nThis type of format is frequently seen in textarea's.  \r\n\r\nMy brother ran into this issue when copying text from Google Tasks into ProseMirror, and was bothered by the fact he had to separate each line.\r\n\r\nI tried my best to prove the slice from transformPasted{...} listeners for any character I could convert into a line break but it seems there are no \\n, &#10; or &#13; to be found in either transformPasted or transformPastedText, only trailing spaces. "},"comment":{"url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/comments/226517990","html_url":"https://github.com/ProseMirror/prosemirror/issues/383#issuecomment-226517990","issue_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/383","id":226517990,"user":{"login":"bZichett","id":7804797,"avatar_url":"https://avatars.githubusercontent.com/u/7804797?v=3","gravatar_id":"","url":"https://api.github.com/users/bZichett","html_url":"https://github.com/bZichett","followers_url":"https://api.github.com/users/bZichett/followers","following_url":"https://api.github.com/users/bZichett/following{/other_user}","gists_url":"https://api.github.com/users/bZichett/gists{/gist_id}","starred_url":"https://api.github.com/users/bZichett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bZichett/subscriptions","organizations_url":"https://api.github.com/users/bZichett/orgs","repos_url":"https://api.github.com/users/bZichett/repos","events_url":"https://api.github.com/users/bZichett/events{/privacy}","received_events_url":"https://api.github.com/users/bZichett/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T15:18:47Z","updated_at":"2016-06-16T15:18:47Z","body":"One that preserves the breaks when pasting from a textarea.\r\n\r\nThese two images should much better convince you of the issue!\r\n\r\n![Text area](http://i.imgur.com/4P38ij0.png)\r\n\r\n\r\n![ProseMirror](http://i.imgur.com/YEmTbKZ.png)\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"bZichett"}}