{"action":"created","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3518","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3518/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3518/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3518/events","html_url":"https://github.com/CenterForOpenScience/osf.io/issues/3518","id":94136965,"number":3518,"title":"[Bug Production: All browsers but FireFox] hitting enter after adding an image or link to wiki exits editing","user":{"login":"jlcohoon","id":4965832,"avatar_url":"https://avatars.githubusercontent.com/u/4965832?v=3","gravatar_id":"","url":"https://api.github.com/users/jlcohoon","html_url":"https://github.com/jlcohoon","followers_url":"https://api.github.com/users/jlcohoon/followers","following_url":"https://api.github.com/users/jlcohoon/following{/other_user}","gists_url":"https://api.github.com/users/jlcohoon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlcohoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlcohoon/subscriptions","organizations_url":"https://api.github.com/users/jlcohoon/orgs","repos_url":"https://api.github.com/users/jlcohoon/repos","events_url":"https://api.github.com/users/jlcohoon/events{/privacy}","received_events_url":"https://api.github.com/users/jlcohoon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/2%20-%20ready","name":"2 - ready","color":"CCCCCC"},{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/bug:%20production","name":"bug: production","color":"e11d21"},{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/priority%20-%20medium","name":"priority - medium","color":"FF810F"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-09T19:47:21Z","updated_at":"2015-07-13T19:45:48Z","closed_at":null,"body":"## Steps\r\n1. Visit a wiki page you have permissions to edit\r\n2. Enter edit mode and click on the add link or add image button above the wiki editing box.\r\n3. Enter a url—do not press 'OK'\r\n4. Hit the 'return' key\r\n\r\n## Outcome\r\n1. The user is brought out of edit mode\r\n2. Changes are not published (but returning to edit mode shows that they were auto saved)\r\n\r\n## Expected outcome\r\n1. Either hitting return should be equivalent to pressing OK or it should do nothing. The user should not be brought out of the edit mode."},"comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments/121035421","html_url":"https://github.com/CenterForOpenScience/osf.io/issues/3518#issuecomment-121035421","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3518","id":121035421,"user":{"login":"mfraezz","id":5659262,"avatar_url":"https://avatars.githubusercontent.com/u/5659262?v=3","gravatar_id":"","url":"https://api.github.com/users/mfraezz","html_url":"https://github.com/mfraezz","followers_url":"https://api.github.com/users/mfraezz/followers","following_url":"https://api.github.com/users/mfraezz/following{/other_user}","gists_url":"https://api.github.com/users/mfraezz/gists{/gist_id}","starred_url":"https://api.github.com/users/mfraezz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfraezz/subscriptions","organizations_url":"https://api.github.com/users/mfraezz/orgs","repos_url":"https://api.github.com/users/mfraezz/repos","events_url":"https://api.github.com/users/mfraezz/events{/privacy}","received_events_url":"https://api.github.com/users/mfraezz/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T19:45:48Z","updated_at":"2015-07-13T19:45:48Z","body":"So, commenting out that [line](https://github.com/CenterForOpenScience/osf.io/blob/develop/website/addons/wiki/static/pagedown-ace/Markdown.Editor.js#L1539) fixes this in Safari and Chrome, and has no effect that I've observed in FF. Reading through that code doesn't yield any obvious issues with doing so, and the original author even left a comment saying that ```this [method] is awkward and I think it sucks```. However, the wiki doesn't run in Live Edit Mode locally, so there may be unintended side effects on staging. @brianjgeiger Can you comment on that subject?"}}