{"action":"reopened","number":500,"pull_request":{"url":"https://api.github.com/repos/tinymce/tinymce/pulls/500","id":34611739,"html_url":"https://github.com/tinymce/tinymce/pull/500","diff_url":"https://github.com/tinymce/tinymce/pull/500.diff","patch_url":"https://github.com/tinymce/tinymce/pull/500.patch","issue_url":"https://api.github.com/repos/tinymce/tinymce/issues/500","number":500,"state":"open","locked":false,"title":"Add global hook into XRH setup of each request","user":{"login":"brent-clintel","id":4666795,"avatar_url":"https://avatars.githubusercontent.com/u/4666795?v=3","gravatar_id":"","url":"https://api.github.com/users/brent-clintel","html_url":"https://github.com/brent-clintel","followers_url":"https://api.github.com/users/brent-clintel/followers","following_url":"https://api.github.com/users/brent-clintel/following{/other_user}","gists_url":"https://api.github.com/users/brent-clintel/gists{/gist_id}","starred_url":"https://api.github.com/users/brent-clintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brent-clintel/subscriptions","organizations_url":"https://api.github.com/users/brent-clintel/orgs","repos_url":"https://api.github.com/users/brent-clintel/repos","events_url":"https://api.github.com/users/brent-clintel/events{/privacy}","received_events_url":"https://api.github.com/users/brent-clintel/received_events","type":"User","site_admin":false},"body":"There are times where the data sent in the XHR request needs to be modified.\r\n\r\nAn example of where this is needed can be seen in pull request, #498.  In this example, the plugin does't currently allow the URL to be defined at the time an XHR request is made.  Having a global hook, is a way to access the request even if the plugin hasn't provided for it.\r\n\r\nThis commit adds a hook before the XHR object is initialised, allowing for the settings to be modified at the time of the request.\r\n\r\n```\r\ntinymce.util.XHR.on('beforeInitialize', function(settings) {\r\n    if (settings.data) settings.data = settings.data + '&';\r\n    settings.data = settings.data + 'foo=bar';\r\n});\r\n```","created_at":"2015-05-04T01:33:43Z","updated_at":"2015-05-07T11:59:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b159f9c648e116d00f61e5411238653e7303ab1e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tinymce/tinymce/pulls/500/commits","review_comments_url":"https://api.github.com/repos/tinymce/tinymce/pulls/500/comments","review_comment_url":"https://api.github.com/repos/tinymce/tinymce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tinymce/tinymce/issues/500/comments","statuses_url":"https://api.github.com/repos/tinymce/tinymce/statuses/849e5adb314b97d7f1d50260ab3610e44daa4e2b","head":{"label":"brent-clintel:patch-2","ref":"patch-2","sha":"849e5adb314b97d7f1d50260ab3610e44daa4e2b","user":{"login":"brent-clintel","id":4666795,"avatar_url":"https://avatars.githubusercontent.com/u/4666795?v=3","gravatar_id":"","url":"https://api.github.com/users/brent-clintel","html_url":"https://github.com/brent-clintel","followers_url":"https://api.github.com/users/brent-clintel/followers","following_url":"https://api.github.com/users/brent-clintel/following{/other_user}","gists_url":"https://api.github.com/users/brent-clintel/gists{/gist_id}","starred_url":"https://api.github.com/users/brent-clintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brent-clintel/subscriptions","organizations_url":"https://api.github.com/users/brent-clintel/orgs","repos_url":"https://api.github.com/users/brent-clintel/repos","events_url":"https://api.github.com/users/brent-clintel/events{/privacy}","received_events_url":"https://api.github.com/users/brent-clintel/received_events","type":"User","site_admin":false},"repo":{"id":34893918,"name":"tinymce","full_name":"brent-clintel/tinymce","owner":{"login":"brent-clintel","id":4666795,"avatar_url":"https://avatars.githubusercontent.com/u/4666795?v=3","gravatar_id":"","url":"https://api.github.com/users/brent-clintel","html_url":"https://github.com/brent-clintel","followers_url":"https://api.github.com/users/brent-clintel/followers","following_url":"https://api.github.com/users/brent-clintel/following{/other_user}","gists_url":"https://api.github.com/users/brent-clintel/gists{/gist_id}","starred_url":"https://api.github.com/users/brent-clintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brent-clintel/subscriptions","organizations_url":"https://api.github.com/users/brent-clintel/orgs","repos_url":"https://api.github.com/users/brent-clintel/repos","events_url":"https://api.github.com/users/brent-clintel/events{/privacy}","received_events_url":"https://api.github.com/users/brent-clintel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brent-clintel/tinymce","description":"TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL.","fork":true,"url":"https://api.github.com/repos/brent-clintel/tinymce","forks_url":"https://api.github.com/repos/brent-clintel/tinymce/forks","keys_url":"https://api.github.com/repos/brent-clintel/tinymce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brent-clintel/tinymce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brent-clintel/tinymce/teams","hooks_url":"https://api.github.com/repos/brent-clintel/tinymce/hooks","issue_events_url":"https://api.github.com/repos/brent-clintel/tinymce/issues/events{/number}","events_url":"https://api.github.com/repos/brent-clintel/tinymce/events","assignees_url":"https://api.github.com/repos/brent-clintel/tinymce/assignees{/user}","branches_url":"https://api.github.com/repos/brent-clintel/tinymce/branches{/branch}","tags_url":"https://api.github.com/repos/brent-clintel/tinymce/tags","blobs_url":"https://api.github.com/repos/brent-clintel/tinymce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brent-clintel/tinymce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brent-clintel/tinymce/git/refs{/sha}","trees_url":"https://api.github.com/repos/brent-clintel/tinymce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brent-clintel/tinymce/statuses/{sha}","languages_url":"https://api.github.com/repos/brent-clintel/tinymce/languages","stargazers_url":"https://api.github.com/repos/brent-clintel/tinymce/stargazers","contributors_url":"https://api.github.com/repos/brent-clintel/tinymce/contributors","subscribers_url":"https://api.github.com/repos/brent-clintel/tinymce/subscribers","subscription_url":"https://api.github.com/repos/brent-clintel/tinymce/subscription","commits_url":"https://api.github.com/repos/brent-clintel/tinymce/commits{/sha}","git_commits_url":"https://api.github.com/repos/brent-clintel/tinymce/git/commits{/sha}","comments_url":"https://api.github.com/repos/brent-clintel/tinymce/comments{/number}","issue_comment_url":"https://api.github.com/repos/brent-clintel/tinymce/issues/comments{/number}","contents_url":"https://api.github.com/repos/brent-clintel/tinymce/contents/{+path}","compare_url":"https://api.github.com/repos/brent-clintel/tinymce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brent-clintel/tinymce/merges","archive_url":"https://api.github.com/repos/brent-clintel/tinymce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brent-clintel/tinymce/downloads","issues_url":"https://api.github.com/repos/brent-clintel/tinymce/issues{/number}","pulls_url":"https://api.github.com/repos/brent-clintel/tinymce/pulls{/number}","milestones_url":"https://api.github.com/repos/brent-clintel/tinymce/milestones{/number}","notifications_url":"https://api.github.com/repos/brent-clintel/tinymce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brent-clintel/tinymce/labels{/name}","releases_url":"https://api.github.com/repos/brent-clintel/tinymce/releases{/id}","created_at":"2015-05-01T07:44:46Z","updated_at":"2015-05-01T07:44:48Z","pushed_at":"2015-05-06T07:50:27Z","git_url":"git://github.com/brent-clintel/tinymce.git","ssh_url":"git@github.com:brent-clintel/tinymce.git","clone_url":"https://github.com/brent-clintel/tinymce.git","svn_url":"https://github.com/brent-clintel/tinymce","homepage":"http://www.tinymce.com/","size":27398,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tinymce:master","ref":"master","sha":"130b824114c5018848c16b0ce21e512abf023bbe","user":{"login":"tinymce","id":119815,"avatar_url":"https://avatars.githubusercontent.com/u/119815?v=3","gravatar_id":"","url":"https://api.github.com/users/tinymce","html_url":"https://github.com/tinymce","followers_url":"https://api.github.com/users/tinymce/followers","following_url":"https://api.github.com/users/tinymce/following{/other_user}","gists_url":"https://api.github.com/users/tinymce/gists{/gist_id}","starred_url":"https://api.github.com/users/tinymce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinymce/subscriptions","organizations_url":"https://api.github.com/users/tinymce/orgs","repos_url":"https://api.github.com/users/tinymce/repos","events_url":"https://api.github.com/users/tinymce/events{/privacy}","received_events_url":"https://api.github.com/users/tinymce/received_events","type":"Organization","site_admin":false},"repo":{"id":467471,"name":"tinymce","full_name":"tinymce/tinymce","owner":{"login":"tinymce","id":119815,"avatar_url":"https://avatars.githubusercontent.com/u/119815?v=3","gravatar_id":"","url":"https://api.github.com/users/tinymce","html_url":"https://github.com/tinymce","followers_url":"https://api.github.com/users/tinymce/followers","following_url":"https://api.github.com/users/tinymce/following{/other_user}","gists_url":"https://api.github.com/users/tinymce/gists{/gist_id}","starred_url":"https://api.github.com/users/tinymce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinymce/subscriptions","organizations_url":"https://api.github.com/users/tinymce/orgs","repos_url":"https://api.github.com/users/tinymce/repos","events_url":"https://api.github.com/users/tinymce/events{/privacy}","received_events_url":"https://api.github.com/users/tinymce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tinymce/tinymce","description":"TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL.","fork":false,"url":"https://api.github.com/repos/tinymce/tinymce","forks_url":"https://api.github.com/repos/tinymce/tinymce/forks","keys_url":"https://api.github.com/repos/tinymce/tinymce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tinymce/tinymce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tinymce/tinymce/teams","hooks_url":"https://api.github.com/repos/tinymce/tinymce/hooks","issue_events_url":"https://api.github.com/repos/tinymce/tinymce/issues/events{/number}","events_url":"https://api.github.com/repos/tinymce/tinymce/events","assignees_url":"https://api.github.com/repos/tinymce/tinymce/assignees{/user}","branches_url":"https://api.github.com/repos/tinymce/tinymce/branches{/branch}","tags_url":"https://api.github.com/repos/tinymce/tinymce/tags","blobs_url":"https://api.github.com/repos/tinymce/tinymce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tinymce/tinymce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tinymce/tinymce/git/refs{/sha}","trees_url":"https://api.github.com/repos/tinymce/tinymce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tinymce/tinymce/statuses/{sha}","languages_url":"https://api.github.com/repos/tinymce/tinymce/languages","stargazers_url":"https://api.github.com/repos/tinymce/tinymce/stargazers","contributors_url":"https://api.github.com/repos/tinymce/tinymce/contributors","subscribers_url":"https://api.github.com/repos/tinymce/tinymce/subscribers","subscription_url":"https://api.github.com/repos/tinymce/tinymce/subscription","commits_url":"https://api.github.com/repos/tinymce/tinymce/commits{/sha}","git_commits_url":"https://api.github.com/repos/tinymce/tinymce/git/commits{/sha}","comments_url":"https://api.github.com/repos/tinymce/tinymce/comments{/number}","issue_comment_url":"https://api.github.com/repos/tinymce/tinymce/issues/comments{/number}","contents_url":"https://api.github.com/repos/tinymce/tinymce/contents/{+path}","compare_url":"https://api.github.com/repos/tinymce/tinymce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tinymce/tinymce/merges","archive_url":"https://api.github.com/repos/tinymce/tinymce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tinymce/tinymce/downloads","issues_url":"https://api.github.com/repos/tinymce/tinymce/issues{/number}","pulls_url":"https://api.github.com/repos/tinymce/tinymce/pulls{/number}","milestones_url":"https://api.github.com/repos/tinymce/tinymce/milestones{/number}","notifications_url":"https://api.github.com/repos/tinymce/tinymce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tinymce/tinymce/labels{/name}","releases_url":"https://api.github.com/repos/tinymce/tinymce/releases{/id}","created_at":"2010-01-11T14:46:42Z","updated_at":"2015-05-05T14:40:15Z","pushed_at":"2015-05-05T12:11:19Z","git_url":"git://github.com/tinymce/tinymce.git","ssh_url":"git@github.com:tinymce/tinymce.git","clone_url":"https://github.com/tinymce/tinymce.git","svn_url":"https://github.com/tinymce/tinymce","homepage":"http://www.tinymce.com/","size":42465,"stargazers_count":2300,"watchers_count":2300,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":747,"mirror_url":null,"open_issues_count":16,"forks":747,"open_issues":16,"watchers":2300,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tinymce/tinymce/pulls/500"},"html":{"href":"https://github.com/tinymce/tinymce/pull/500"},"issue":{"href":"https://api.github.com/repos/tinymce/tinymce/issues/500"},"comments":{"href":"https://api.github.com/repos/tinymce/tinymce/issues/500/comments"},"review_comments":{"href":"https://api.github.com/repos/tinymce/tinymce/pulls/500/comments"},"review_comment":{"href":"https://api.github.com/repos/tinymce/tinymce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tinymce/tinymce/pulls/500/commits"},"statuses":{"href":"https://api.github.com/repos/tinymce/tinymce/statuses/849e5adb314b97d7f1d50260ab3610e44daa4e2b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":2,"review_comments":0,"commits":2,"additions":2,"deletions":0,"changed_files":1}}