{"action":"closed","issue":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4582","repository_url":"https://api.github.com/repos/codemirror/CodeMirror","labels_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4582/labels{/name}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4582/comments","events_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4582/events","html_url":"https://github.com/codemirror/CodeMirror/issues/4582","id":208287897,"number":4582,"title":"Marking text seems inconsistent when overlapping sections","user":{"login":"bmass02","id":7244711,"avatar_url":"https://avatars.githubusercontent.com/u/7244711?v=3","gravatar_id":"","url":"https://api.github.com/users/bmass02","html_url":"https://github.com/bmass02","followers_url":"https://api.github.com/users/bmass02/followers","following_url":"https://api.github.com/users/bmass02/following{/other_user}","gists_url":"https://api.github.com/users/bmass02/gists{/gist_id}","starred_url":"https://api.github.com/users/bmass02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmass02/subscriptions","organizations_url":"https://api.github.com/users/bmass02/orgs","repos_url":"https://api.github.com/users/bmass02/repos","events_url":"https://api.github.com/users/bmass02/events{/privacy}","received_events_url":"https://api.github.com/users/bmass02/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-02-16T23:56:11Z","updated_at":"2017-02-17T15:31:14Z","closed_at":"2017-02-17T15:31:14Z","body":"# Problem\r\nWhen marking text that overlaps one another, some inconsistencies arise. If an encompassing text is marked after an inner text, then it seems deleting any text that includes editable text deletes the uneditable text also. However, the only uneditable text that is deleted is text that follows the editable text.\r\n\r\n# Solution\r\nIf you change the order of marking the text (i.e. mark the encompassing text first) then the marked text acts as expected (i.e. uneditable text isn't edited).\r\n\r\n\r\nI'm not sure if this functionality is intended. If so, maybe updating the docs on marking text would help.\r\n\r\n# Reproduction\r\nhttps://jsfiddle.net/udskry4v/19/\r\n\r\nThe first CodeMirror editor has the problem.\r\nThe second has the fix.\r\n\r\nThanks for the great software!"}}
{"actor":{"display_login":"marijnh"}}