{"action":"opened","number":638,"pull_request":{"url":"https://api.github.com/repos/daviferreira/medium-editor/pulls/638","id":36209349,"html_url":"https://github.com/daviferreira/medium-editor/pull/638","diff_url":"https://github.com/daviferreira/medium-editor/pull/638.diff","patch_url":"https://github.com/daviferreira/medium-editor/pull/638.patch","issue_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/638","number":638,"state":"open","locked":false,"title":"provide toolbarUpdate event hook","user":{"login":"phiggins42","id":58393,"avatar_url":"https://avatars.githubusercontent.com/u/58393?v=3","gravatar_id":"","url":"https://api.github.com/users/phiggins42","html_url":"https://github.com/phiggins42","followers_url":"https://api.github.com/users/phiggins42/followers","following_url":"https://api.github.com/users/phiggins42/following{/other_user}","gists_url":"https://api.github.com/users/phiggins42/gists{/gist_id}","starred_url":"https://api.github.com/users/phiggins42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phiggins42/subscriptions","organizations_url":"https://api.github.com/users/phiggins42/orgs","repos_url":"https://api.github.com/users/phiggins42/repos","events_url":"https://api.github.com/users/phiggins42/events{/privacy}","received_events_url":"https://api.github.com/users/phiggins42/received_events","type":"User","site_admin":false},"body":"if a user wants to update the toolbar based on selection change the showToolbar and hideToolbar events are insufficient: if a selection is made and toolbar is showing, making another selection in a different region will not show hideToolbar and showToolbar, though the toolbar goes through an update state call in this case. This simply provides an event trigger when that condition happens.\r\n\r\nusecase: I am providing dynamic button lists based on the parent wrapping element (eg: no bold in headings). this works fine with showToolbar (determine parent, decide which buttons to show) and hideToolbar (reset to orig), however, I need to reset and redetermine the available buttons when the above selection change-but-not-hiding-toolbar case is hit.\r\n","created_at":"2015-05-26T14:42:24Z","updated_at":"2015-05-26T14:42:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b3d1c998289ca4f6525d2b205e1822f4fc17e5bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/daviferreira/medium-editor/pulls/638/commits","review_comments_url":"https://api.github.com/repos/daviferreira/medium-editor/pulls/638/comments","review_comment_url":"https://api.github.com/repos/daviferreira/medium-editor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/638/comments","statuses_url":"https://api.github.com/repos/daviferreira/medium-editor/statuses/52167dc2237ec8c96fbc1b3ddcd35b08bf9d8ab0","head":{"label":"phiggins42:master","ref":"master","sha":"52167dc2237ec8c96fbc1b3ddcd35b08bf9d8ab0","user":{"login":"phiggins42","id":58393,"avatar_url":"https://avatars.githubusercontent.com/u/58393?v=3","gravatar_id":"","url":"https://api.github.com/users/phiggins42","html_url":"https://github.com/phiggins42","followers_url":"https://api.github.com/users/phiggins42/followers","following_url":"https://api.github.com/users/phiggins42/following{/other_user}","gists_url":"https://api.github.com/users/phiggins42/gists{/gist_id}","starred_url":"https://api.github.com/users/phiggins42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phiggins42/subscriptions","organizations_url":"https://api.github.com/users/phiggins42/orgs","repos_url":"https://api.github.com/users/phiggins42/repos","events_url":"https://api.github.com/users/phiggins42/events{/privacy}","received_events_url":"https://api.github.com/users/phiggins42/received_events","type":"User","site_admin":false},"repo":{"id":32473243,"name":"medium-editor","full_name":"phiggins42/medium-editor","owner":{"login":"phiggins42","id":58393,"avatar_url":"https://avatars.githubusercontent.com/u/58393?v=3","gravatar_id":"","url":"https://api.github.com/users/phiggins42","html_url":"https://github.com/phiggins42","followers_url":"https://api.github.com/users/phiggins42/followers","following_url":"https://api.github.com/users/phiggins42/following{/other_user}","gists_url":"https://api.github.com/users/phiggins42/gists{/gist_id}","starred_url":"https://api.github.com/users/phiggins42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phiggins42/subscriptions","organizations_url":"https://api.github.com/users/phiggins42/orgs","repos_url":"https://api.github.com/users/phiggins42/repos","events_url":"https://api.github.com/users/phiggins42/events{/privacy}","received_events_url":"https://api.github.com/users/phiggins42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phiggins42/medium-editor","description":"Medium.com WYSIWYG editor clone. Uses contenteditable API to implement a rich text solution.","fork":true,"url":"https://api.github.com/repos/phiggins42/medium-editor","forks_url":"https://api.github.com/repos/phiggins42/medium-editor/forks","keys_url":"https://api.github.com/repos/phiggins42/medium-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phiggins42/medium-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phiggins42/medium-editor/teams","hooks_url":"https://api.github.com/repos/phiggins42/medium-editor/hooks","issue_events_url":"https://api.github.com/repos/phiggins42/medium-editor/issues/events{/number}","events_url":"https://api.github.com/repos/phiggins42/medium-editor/events","assignees_url":"https://api.github.com/repos/phiggins42/medium-editor/assignees{/user}","branches_url":"https://api.github.com/repos/phiggins42/medium-editor/branches{/branch}","tags_url":"https://api.github.com/repos/phiggins42/medium-editor/tags","blobs_url":"https://api.github.com/repos/phiggins42/medium-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phiggins42/medium-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phiggins42/medium-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/phiggins42/medium-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phiggins42/medium-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/phiggins42/medium-editor/languages","stargazers_url":"https://api.github.com/repos/phiggins42/medium-editor/stargazers","contributors_url":"https://api.github.com/repos/phiggins42/medium-editor/contributors","subscribers_url":"https://api.github.com/repos/phiggins42/medium-editor/subscribers","subscription_url":"https://api.github.com/repos/phiggins42/medium-editor/subscription","commits_url":"https://api.github.com/repos/phiggins42/medium-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/phiggins42/medium-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/phiggins42/medium-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/phiggins42/medium-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/phiggins42/medium-editor/contents/{+path}","compare_url":"https://api.github.com/repos/phiggins42/medium-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phiggins42/medium-editor/merges","archive_url":"https://api.github.com/repos/phiggins42/medium-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phiggins42/medium-editor/downloads","issues_url":"https://api.github.com/repos/phiggins42/medium-editor/issues{/number}","pulls_url":"https://api.github.com/repos/phiggins42/medium-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/phiggins42/medium-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/phiggins42/medium-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phiggins42/medium-editor/labels{/name}","releases_url":"https://api.github.com/repos/phiggins42/medium-editor/releases{/id}","created_at":"2015-03-18T17:20:18Z","updated_at":"2015-04-07T15:43:21Z","pushed_at":"2015-05-26T14:37:44Z","git_url":"git://github.com/phiggins42/medium-editor.git","ssh_url":"git@github.com:phiggins42/medium-editor.git","clone_url":"https://github.com/phiggins42/medium-editor.git","svn_url":"https://github.com/phiggins42/medium-editor","homepage":"http://daviferreira.github.io/medium-editor/","size":5340,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"daviferreira:master","ref":"master","sha":"91633089fbb7367e96894173c9fddd5fb370dff5","user":{"login":"daviferreira","id":38787,"avatar_url":"https://avatars.githubusercontent.com/u/38787?v=3","gravatar_id":"","url":"https://api.github.com/users/daviferreira","html_url":"https://github.com/daviferreira","followers_url":"https://api.github.com/users/daviferreira/followers","following_url":"https://api.github.com/users/daviferreira/following{/other_user}","gists_url":"https://api.github.com/users/daviferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/daviferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviferreira/subscriptions","organizations_url":"https://api.github.com/users/daviferreira/orgs","repos_url":"https://api.github.com/users/daviferreira/repos","events_url":"https://api.github.com/users/daviferreira/events{/privacy}","received_events_url":"https://api.github.com/users/daviferreira/received_events","type":"User","site_admin":false},"repo":{"id":10365411,"name":"medium-editor","full_name":"daviferreira/medium-editor","owner":{"login":"daviferreira","id":38787,"avatar_url":"https://avatars.githubusercontent.com/u/38787?v=3","gravatar_id":"","url":"https://api.github.com/users/daviferreira","html_url":"https://github.com/daviferreira","followers_url":"https://api.github.com/users/daviferreira/followers","following_url":"https://api.github.com/users/daviferreira/following{/other_user}","gists_url":"https://api.github.com/users/daviferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/daviferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviferreira/subscriptions","organizations_url":"https://api.github.com/users/daviferreira/orgs","repos_url":"https://api.github.com/users/daviferreira/repos","events_url":"https://api.github.com/users/daviferreira/events{/privacy}","received_events_url":"https://api.github.com/users/daviferreira/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daviferreira/medium-editor","description":"Medium.com WYSIWYG editor clone. Uses contenteditable API to implement a rich text solution.","fork":false,"url":"https://api.github.com/repos/daviferreira/medium-editor","forks_url":"https://api.github.com/repos/daviferreira/medium-editor/forks","keys_url":"https://api.github.com/repos/daviferreira/medium-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daviferreira/medium-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daviferreira/medium-editor/teams","hooks_url":"https://api.github.com/repos/daviferreira/medium-editor/hooks","issue_events_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/events{/number}","events_url":"https://api.github.com/repos/daviferreira/medium-editor/events","assignees_url":"https://api.github.com/repos/daviferreira/medium-editor/assignees{/user}","branches_url":"https://api.github.com/repos/daviferreira/medium-editor/branches{/branch}","tags_url":"https://api.github.com/repos/daviferreira/medium-editor/tags","blobs_url":"https://api.github.com/repos/daviferreira/medium-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daviferreira/medium-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daviferreira/medium-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/daviferreira/medium-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daviferreira/medium-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/daviferreira/medium-editor/languages","stargazers_url":"https://api.github.com/repos/daviferreira/medium-editor/stargazers","contributors_url":"https://api.github.com/repos/daviferreira/medium-editor/contributors","subscribers_url":"https://api.github.com/repos/daviferreira/medium-editor/subscribers","subscription_url":"https://api.github.com/repos/daviferreira/medium-editor/subscription","commits_url":"https://api.github.com/repos/daviferreira/medium-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/daviferreira/medium-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/daviferreira/medium-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/daviferreira/medium-editor/contents/{+path}","compare_url":"https://api.github.com/repos/daviferreira/medium-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daviferreira/medium-editor/merges","archive_url":"https://api.github.com/repos/daviferreira/medium-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daviferreira/medium-editor/downloads","issues_url":"https://api.github.com/repos/daviferreira/medium-editor/issues{/number}","pulls_url":"https://api.github.com/repos/daviferreira/medium-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/daviferreira/medium-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/daviferreira/medium-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daviferreira/medium-editor/labels{/name}","releases_url":"https://api.github.com/repos/daviferreira/medium-editor/releases{/id}","created_at":"2013-05-29T17:40:11Z","updated_at":"2015-05-26T14:00:24Z","pushed_at":"2015-05-26T14:42:24Z","git_url":"git://github.com/daviferreira/medium-editor.git","ssh_url":"git@github.com:daviferreira/medium-editor.git","clone_url":"https://github.com/daviferreira/medium-editor.git","svn_url":"https://github.com/daviferreira/medium-editor","homepage":"https://daviferreira.github.io/medium-editor/","size":12811,"stargazers_count":5031,"watchers_count":5031,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":618,"mirror_url":null,"open_issues_count":85,"forks":618,"open_issues":85,"watchers":5031,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/daviferreira/medium-editor/pulls/638"},"html":{"href":"https://github.com/daviferreira/medium-editor/pull/638"},"issue":{"href":"https://api.github.com/repos/daviferreira/medium-editor/issues/638"},"comments":{"href":"https://api.github.com/repos/daviferreira/medium-editor/issues/638/comments"},"review_comments":{"href":"https://api.github.com/repos/daviferreira/medium-editor/pulls/638/comments"},"review_comment":{"href":"https://api.github.com/repos/daviferreira/medium-editor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/daviferreira/medium-editor/pulls/638/commits"},"statuses":{"href":"https://api.github.com/repos/daviferreira/medium-editor/statuses/52167dc2237ec8c96fbc1b3ddcd35b08bf9d8ab0"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":5,"deletions":3,"changed_files":3}}