{"action":"created","comment":{"url":"https://api.github.com/repos/bustlelabs/content-kit-editor/pulls/comments/40131780","id":40131780,"diff_hunk":"@@ -384,6 +386,13 @@ class Editor {\n     return activeSections[activeSections.length - 1];\n   }\n \n+  detectRangeMarkup(range, markupTagName) {","path":"src/js/editor/editor.js","position":22,"original_position":22,"commit_id":"6c7645a5a7ef9927a0b9a33f94389e77d3aa4ec1","original_commit_id":"6c7645a5a7ef9927a0b9a33f94389e77d3aa4ec1","user":{"login":"bantic","id":2023,"avatar_url":"https://avatars.githubusercontent.com/u/2023?v=3","gravatar_id":"","url":"https://api.github.com/users/bantic","html_url":"https://github.com/bantic","followers_url":"https://api.github.com/users/bantic/followers","following_url":"https://api.github.com/users/bantic/following{/other_user}","gists_url":"https://api.github.com/users/bantic/gists{/gist_id}","starred_url":"https://api.github.com/users/bantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bantic/subscriptions","organizations_url":"https://api.github.com/users/bantic/orgs","repos_url":"https://api.github.com/users/bantic/repos","events_url":"https://api.github.com/users/bantic/events{/privacy}","received_events_url":"https://api.github.com/users/bantic/received_events","type":"User","site_admin":false},"body":"perhaps `hasMarkupInRange` ? or `detectMarkupInRange`?","created_at":"2015-09-22T19:23:20Z","updated_at":"2015-09-22T19:23:20Z","html_url":"https://github.com/bustlelabs/content-kit-editor/pull/159#discussion_r40131780","pull_request_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/pulls/159","_links":{"self":{"href":"https://api.github.com/repos/bustlelabs/content-kit-editor/pulls/comments/40131780"},"html":{"href":"https://github.com/bustlelabs/content-kit-editor/pull/159#discussion_r40131780"},"pull_request":{"href":"https://api.github.com/repos/bustlelabs/content-kit-editor/pulls/159"}}},"pull_request":{"url":"https://api.github.com/repos/bustlelabs/content-kit-editor/pulls/159","id":45701239,"html_url":"https://github.com/bustlelabs/content-kit-editor/pull/159","diff_url":"https://github.com/bustlelabs/content-kit-editor/pull/159.diff","patch_url":"https://github.com/bustlelabs/content-kit-editor/pull/159.patch","issue_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/issues/159","number":159,"state":"open","locked":false,"title":"Add #detectRangeMarkup to editor","user":{"login":"mixonic","id":8752,"avatar_url":"https://avatars.githubusercontent.com/u/8752?v=3","gravatar_id":"","url":"https://api.github.com/users/mixonic","html_url":"https://github.com/mixonic","followers_url":"https://api.github.com/users/mixonic/followers","following_url":"https://api.github.com/users/mixonic/following{/other_user}","gists_url":"https://api.github.com/users/mixonic/gists{/gist_id}","starred_url":"https://api.github.com/users/mixonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixonic/subscriptions","organizations_url":"https://api.github.com/users/mixonic/orgs","repos_url":"https://api.github.com/users/mixonic/repos","events_url":"https://api.github.com/users/mixonic/events{/privacy}","received_events_url":"https://api.github.com/users/mixonic/received_events","type":"User","site_admin":false},"body":"Add a public API for detecting markup in a range. This is used by Ember to see if a link is present in the current selection.","created_at":"2015-09-22T18:45:33Z","updated_at":"2015-09-22T19:23:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"257d3d7847901d213de629898a2aa22ba6e61857","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/pulls/159/commits","review_comments_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/pulls/159/comments","review_comment_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/issues/159/comments","statuses_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/statuses/6c7645a5a7ef9927a0b9a33f94389e77d3aa4ec1","head":{"label":"mixonic:detectRangeMarkup","ref":"detectRangeMarkup","sha":"6c7645a5a7ef9927a0b9a33f94389e77d3aa4ec1","user":{"login":"mixonic","id":8752,"avatar_url":"https://avatars.githubusercontent.com/u/8752?v=3","gravatar_id":"","url":"https://api.github.com/users/mixonic","html_url":"https://github.com/mixonic","followers_url":"https://api.github.com/users/mixonic/followers","following_url":"https://api.github.com/users/mixonic/following{/other_user}","gists_url":"https://api.github.com/users/mixonic/gists{/gist_id}","starred_url":"https://api.github.com/users/mixonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixonic/subscriptions","organizations_url":"https://api.github.com/users/mixonic/orgs","repos_url":"https://api.github.com/users/mixonic/repos","events_url":"https://api.github.com/users/mixonic/events{/privacy}","received_events_url":"https://api.github.com/users/mixonic/received_events","type":"User","site_admin":false},"repo":{"id":38009584,"name":"content-kit-editor","full_name":"mixonic/content-kit-editor","owner":{"login":"mixonic","id":8752,"avatar_url":"https://avatars.githubusercontent.com/u/8752?v=3","gravatar_id":"","url":"https://api.github.com/users/mixonic","html_url":"https://github.com/mixonic","followers_url":"https://api.github.com/users/mixonic/followers","following_url":"https://api.github.com/users/mixonic/following{/other_user}","gists_url":"https://api.github.com/users/mixonic/gists{/gist_id}","starred_url":"https://api.github.com/users/mixonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixonic/subscriptions","organizations_url":"https://api.github.com/users/mixonic/orgs","repos_url":"https://api.github.com/users/mixonic/repos","events_url":"https://api.github.com/users/mixonic/events{/privacy}","received_events_url":"https://api.github.com/users/mixonic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mixonic/content-kit-editor","description":"A modern, minimalist WYSIWYG editor","fork":true,"url":"https://api.github.com/repos/mixonic/content-kit-editor","forks_url":"https://api.github.com/repos/mixonic/content-kit-editor/forks","keys_url":"https://api.github.com/repos/mixonic/content-kit-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixonic/content-kit-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixonic/content-kit-editor/teams","hooks_url":"https://api.github.com/repos/mixonic/content-kit-editor/hooks","issue_events_url":"https://api.github.com/repos/mixonic/content-kit-editor/issues/events{/number}","events_url":"https://api.github.com/repos/mixonic/content-kit-editor/events","assignees_url":"https://api.github.com/repos/mixonic/content-kit-editor/assignees{/user}","branches_url":"https://api.github.com/repos/mixonic/content-kit-editor/branches{/branch}","tags_url":"https://api.github.com/repos/mixonic/content-kit-editor/tags","blobs_url":"https://api.github.com/repos/mixonic/content-kit-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixonic/content-kit-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixonic/content-kit-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixonic/content-kit-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixonic/content-kit-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/mixonic/content-kit-editor/languages","stargazers_url":"https://api.github.com/repos/mixonic/content-kit-editor/stargazers","contributors_url":"https://api.github.com/repos/mixonic/content-kit-editor/contributors","subscribers_url":"https://api.github.com/repos/mixonic/content-kit-editor/subscribers","subscription_url":"https://api.github.com/repos/mixonic/content-kit-editor/subscription","commits_url":"https://api.github.com/repos/mixonic/content-kit-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixonic/content-kit-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixonic/content-kit-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixonic/content-kit-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixonic/content-kit-editor/contents/{+path}","compare_url":"https://api.github.com/repos/mixonic/content-kit-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixonic/content-kit-editor/merges","archive_url":"https://api.github.com/repos/mixonic/content-kit-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixonic/content-kit-editor/downloads","issues_url":"https://api.github.com/repos/mixonic/content-kit-editor/issues{/number}","pulls_url":"https://api.github.com/repos/mixonic/content-kit-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/mixonic/content-kit-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/mixonic/content-kit-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixonic/content-kit-editor/labels{/name}","releases_url":"https://api.github.com/repos/mixonic/content-kit-editor/releases{/id}","created_at":"2015-06-24T20:35:41Z","updated_at":"2015-08-01T03:33:21Z","pushed_at":"2015-09-22T18:44:37Z","git_url":"git://github.com/mixonic/content-kit-editor.git","ssh_url":"git@github.com:mixonic/content-kit-editor.git","clone_url":"https://github.com/mixonic/content-kit-editor.git","svn_url":"https://github.com/mixonic/content-kit-editor","homepage":"","size":1501,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"bustlelabs:master","ref":"master","sha":"2a689a5fde204777cd360532c376315eae72c1f2","user":{"login":"bustlelabs","id":2198187,"avatar_url":"https://avatars.githubusercontent.com/u/2198187?v=3","gravatar_id":"","url":"https://api.github.com/users/bustlelabs","html_url":"https://github.com/bustlelabs","followers_url":"https://api.github.com/users/bustlelabs/followers","following_url":"https://api.github.com/users/bustlelabs/following{/other_user}","gists_url":"https://api.github.com/users/bustlelabs/gists{/gist_id}","starred_url":"https://api.github.com/users/bustlelabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bustlelabs/subscriptions","organizations_url":"https://api.github.com/users/bustlelabs/orgs","repos_url":"https://api.github.com/users/bustlelabs/repos","events_url":"https://api.github.com/users/bustlelabs/events{/privacy}","received_events_url":"https://api.github.com/users/bustlelabs/received_events","type":"Organization","site_admin":false},"repo":{"id":21694966,"name":"content-kit-editor","full_name":"bustlelabs/content-kit-editor","owner":{"login":"bustlelabs","id":2198187,"avatar_url":"https://avatars.githubusercontent.com/u/2198187?v=3","gravatar_id":"","url":"https://api.github.com/users/bustlelabs","html_url":"https://github.com/bustlelabs","followers_url":"https://api.github.com/users/bustlelabs/followers","following_url":"https://api.github.com/users/bustlelabs/following{/other_user}","gists_url":"https://api.github.com/users/bustlelabs/gists{/gist_id}","starred_url":"https://api.github.com/users/bustlelabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bustlelabs/subscriptions","organizations_url":"https://api.github.com/users/bustlelabs/orgs","repos_url":"https://api.github.com/users/bustlelabs/repos","events_url":"https://api.github.com/users/bustlelabs/events{/privacy}","received_events_url":"https://api.github.com/users/bustlelabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bustlelabs/content-kit-editor","description":"A modern, minimalist WYSIWYG editor","fork":false,"url":"https://api.github.com/repos/bustlelabs/content-kit-editor","forks_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/forks","keys_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/teams","hooks_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/hooks","issue_events_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/issues/events{/number}","events_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/events","assignees_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/assignees{/user}","branches_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/branches{/branch}","tags_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/tags","blobs_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/languages","stargazers_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/stargazers","contributors_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/contributors","subscribers_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/subscribers","subscription_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/subscription","commits_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/contents/{+path}","compare_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/merges","archive_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/downloads","issues_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/issues{/number}","pulls_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/labels{/name}","releases_url":"https://api.github.com/repos/bustlelabs/content-kit-editor/releases{/id}","created_at":"2014-07-10T13:22:19Z","updated_at":"2015-09-22T16:42:41Z","pushed_at":"2015-09-22T18:45:33Z","git_url":"git://github.com/bustlelabs/content-kit-editor.git","ssh_url":"git@github.com:bustlelabs/content-kit-editor.git","clone_url":"https://github.com/bustlelabs/content-kit-editor.git","svn_url":"https://github.com/bustlelabs/content-kit-editor","homepage":"","size":2933,"stargazers_count":99,"watchers_count":99,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":9,"mirror_url":null,"open_issues_count":9,"forks":9,"open_issues":9,"watchers":99,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bustlelabs/content-kit-editor/pulls/159"},"html":{"href":"https://github.com/bustlelabs/content-kit-editor/pull/159"},"issue":{"href":"https://api.github.com/repos/bustlelabs/content-kit-editor/issues/159"},"comments":{"href":"https://api.github.com/repos/bustlelabs/content-kit-editor/issues/159/comments"},"review_comments":{"href":"https://api.github.com/repos/bustlelabs/content-kit-editor/pulls/159/comments"},"review_comment":{"href":"https://api.github.com/repos/bustlelabs/content-kit-editor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bustlelabs/content-kit-editor/pulls/159/commits"},"statuses":{"href":"https://api.github.com/repos/bustlelabs/content-kit-editor/statuses/6c7645a5a7ef9927a0b9a33f94389e77d3aa4ec1"}}}}