{"action":"closed","issue":{"url":"https://api.github.com/repos/bootstrapworld/codemirror-blocks/issues/11","labels_url":"https://api.github.com/repos/bootstrapworld/codemirror-blocks/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/bootstrapworld/codemirror-blocks/issues/11/comments","events_url":"https://api.github.com/repos/bootstrapworld/codemirror-blocks/issues/11/events","html_url":"https://github.com/bootstrapworld/codemirror-blocks/issues/11","id":120879341,"number":11,"title":"Block editors should expose a 'highlight' or 'marktext' API","user":{"login":"schanzer","id":77126,"avatar_url":"https://avatars.githubusercontent.com/u/77126?v=3","gravatar_id":"","url":"https://api.github.com/users/schanzer","html_url":"https://github.com/schanzer","followers_url":"https://api.github.com/users/schanzer/followers","following_url":"https://api.github.com/users/schanzer/following{/other_user}","gists_url":"https://api.github.com/users/schanzer/gists{/gist_id}","starred_url":"https://api.github.com/users/schanzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schanzer/subscriptions","organizations_url":"https://api.github.com/users/schanzer/orgs","repos_url":"https://api.github.com/users/schanzer/repos","events_url":"https://api.github.com/users/schanzer/events{/privacy}","received_events_url":"https://api.github.com/users/schanzer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"pcardune","id":124827,"avatar_url":"https://avatars.githubusercontent.com/u/124827?v=3","gravatar_id":"","url":"https://api.github.com/users/pcardune","html_url":"https://github.com/pcardune","followers_url":"https://api.github.com/users/pcardune/followers","following_url":"https://api.github.com/users/pcardune/following{/other_user}","gists_url":"https://api.github.com/users/pcardune/gists{/gist_id}","starred_url":"https://api.github.com/users/pcardune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcardune/subscriptions","organizations_url":"https://api.github.com/users/pcardune/orgs","repos_url":"https://api.github.com/users/pcardune/repos","events_url":"https://api.github.com/users/pcardune/events{/privacy}","received_events_url":"https://api.github.com/users/pcardune/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/bootstrapworld/codemirror-blocks/milestones/1","html_url":"https://github.com/bootstrapworld/codemirror-blocks/milestones/M1","labels_url":"https://api.github.com/repos/bootstrapworld/codemirror-blocks/milestones/1/labels","id":1452621,"number":1,"title":"M1","description":"The first iteration of the codemirror-blocks library","creator":{"login":"pcardune","id":124827,"avatar_url":"https://avatars.githubusercontent.com/u/124827?v=3","gravatar_id":"","url":"https://api.github.com/users/pcardune","html_url":"https://github.com/pcardune","followers_url":"https://api.github.com/users/pcardune/followers","following_url":"https://api.github.com/users/pcardune/following{/other_user}","gists_url":"https://api.github.com/users/pcardune/gists{/gist_id}","starred_url":"https://api.github.com/users/pcardune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcardune/subscriptions","organizations_url":"https://api.github.com/users/pcardune/orgs","repos_url":"https://api.github.com/users/pcardune/repos","events_url":"https://api.github.com/users/pcardune/events{/privacy}","received_events_url":"https://api.github.com/users/pcardune/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":9,"state":"open","created_at":"2015-12-09T19:45:35Z","updated_at":"2015-12-18T00:19:53Z","due_on":"2015-12-25T08:00:00Z","closed_at":null},"comments":4,"created_at":"2015-12-07T22:07:34Z","updated_at":"2015-12-18T00:19:53Z","closed_at":"2015-12-18T00:19:53Z","body":"Depending on how much we want to align with CM (I'd image there's a big win for this), the Blocks Editor should also expose some subset of the MarkText API. \r\n\r\nUse case: a programmer has some code that calls cm.marktext(p1, p2, {css: \"background: blue\"}). If p1 and p2 correspond to the start and end of a block, that block should also take on that style rule."}}