{"action":"opened","issue":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1600","repository_url":"https://api.github.com/repos/froala/wysiwyg-editor","labels_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1600/labels{/name}","comments_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1600/comments","events_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1600/events","html_url":"https://github.com/froala/wysiwyg-editor/issues/1600","id":188489485,"number":1600,"title":"<br> elements being misplaced","user":{"login":"robsix","id":1579330,"avatar_url":"https://avatars.githubusercontent.com/u/1579330?v=3","gravatar_id":"","url":"https://api.github.com/users/robsix","html_url":"https://github.com/robsix","followers_url":"https://api.github.com/users/robsix/followers","following_url":"https://api.github.com/users/robsix/following{/other_user}","gists_url":"https://api.github.com/users/robsix/gists{/gist_id}","starred_url":"https://api.github.com/users/robsix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robsix/subscriptions","organizations_url":"https://api.github.com/users/robsix/orgs","repos_url":"https://api.github.com/users/robsix/repos","events_url":"https://api.github.com/users/robsix/events{/privacy}","received_events_url":"https://api.github.com/users/robsix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-10T11:56:03Z","updated_at":"2016-11-10T11:56:03Z","closed_at":null,"body":"##### Expected behavior.\r\nwith content in the editor as\r\n`one<br>two<br>three<br>four`\r\nselecting the top line and choosing to format as a heading should format the `one` to be a heading and leave the other elements as they were\r\n\r\n##### Actual behavior.\r\nthe `<br>` element is removed from between the two and three\r\n\r\n##### Steps to reproduce the problem.\r\nsee above\r\n\r\n##### OS.\r\nn/a\r\n\r\n##### Browser.\r\nn/a\r\n\r\n##### Fix\r\nOn line 3768 put the `<br>` element before the $(this).html() as in:\r\n`$(this).replaceWith('<br>' + $(this).html())`"}}
{"actor":{"display_login":"robsix"}}