{"action":"closed","number":187,"pull_request":{"url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/pulls/187","id":65722296,"html_url":"https://github.com/draft-js-plugins/draft-js-plugins/pull/187","diff_url":"https://github.com/draft-js-plugins/draft-js-plugins/pull/187.diff","patch_url":"https://github.com/draft-js-plugins/draft-js-plugins/pull/187.patch","issue_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/187","number":187,"state":"closed","locked":false,"title":"Editor patch","user":{"login":"bkniffler","id":4349324,"avatar_url":"https://avatars.githubusercontent.com/u/4349324?v=3","gravatar_id":"","url":"https://api.github.com/users/bkniffler","html_url":"https://github.com/bkniffler","followers_url":"https://api.github.com/users/bkniffler/followers","following_url":"https://api.github.com/users/bkniffler/following{/other_user}","gists_url":"https://api.github.com/users/bkniffler/gists{/gist_id}","starred_url":"https://api.github.com/users/bkniffler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkniffler/subscriptions","organizations_url":"https://api.github.com/users/bkniffler/orgs","repos_url":"https://api.github.com/users/bkniffler/repos","events_url":"https://api.github.com/users/bkniffler/events{/privacy}","received_events_url":"https://api.github.com/users/bkniffler/received_events","type":"User","site_admin":false},"body":"\r\n- Allow https://github.com/draft-js-plugins/draft-js-plugins/issues/156#issuecomment-207060175\r\n- Allow for props to behave like the plugins instead of them overwriting plugin behaviour\r\n\r\nI know `createFnHooks` isn't as beautiful as it used to be, but this is an important step. If you come up with a more clever way, please help refactoring it!\r\n\r\nThe changes will allow something like this:\r\n```\r\nexport default function DndPlugin = (options) => {\r\n    return {\r\n        blockRendererFn: (contentBlock) => {\r\n            return {\r\n                decorators: [Draggable],\r\n                props: {\r\n                    allowDrag: options.allowDag !== false\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nThe plugin will apply a decorator to all blocks, and also append the allowDrag prop.","created_at":"2016-04-08T00:45:57Z","updated_at":"2016-04-11T05:24:26Z","closed_at":"2016-04-11T05:24:26Z","merged_at":"2016-04-11T05:24:26Z","merge_commit_sha":"88d970e3c0350ddf5a317728e08bc4b9c54f66b3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/pulls/187/commits","review_comments_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/pulls/187/comments","review_comment_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/187/comments","statuses_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/statuses/48e72572f964f5a797f77beaf3632f05563ce5be","head":{"label":"draft-js-plugins:editor-patch","ref":"editor-patch","sha":"48e72572f964f5a797f77beaf3632f05563ce5be","user":{"login":"draft-js-plugins","id":17958833,"avatar_url":"https://avatars.githubusercontent.com/u/17958833?v=3","gravatar_id":"","url":"https://api.github.com/users/draft-js-plugins","html_url":"https://github.com/draft-js-plugins","followers_url":"https://api.github.com/users/draft-js-plugins/followers","following_url":"https://api.github.com/users/draft-js-plugins/following{/other_user}","gists_url":"https://api.github.com/users/draft-js-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/draft-js-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draft-js-plugins/subscriptions","organizations_url":"https://api.github.com/users/draft-js-plugins/orgs","repos_url":"https://api.github.com/users/draft-js-plugins/repos","events_url":"https://api.github.com/users/draft-js-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/draft-js-plugins/received_events","type":"Organization","site_admin":false},"repo":{"id":52595230,"name":"draft-js-plugins","full_name":"draft-js-plugins/draft-js-plugins","owner":{"login":"draft-js-plugins","id":17958833,"avatar_url":"https://avatars.githubusercontent.com/u/17958833?v=3","gravatar_id":"","url":"https://api.github.com/users/draft-js-plugins","html_url":"https://github.com/draft-js-plugins","followers_url":"https://api.github.com/users/draft-js-plugins/followers","following_url":"https://api.github.com/users/draft-js-plugins/following{/other_user}","gists_url":"https://api.github.com/users/draft-js-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/draft-js-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draft-js-plugins/subscriptions","organizations_url":"https://api.github.com/users/draft-js-plugins/orgs","repos_url":"https://api.github.com/users/draft-js-plugins/repos","events_url":"https://api.github.com/users/draft-js-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/draft-js-plugins/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/draft-js-plugins/draft-js-plugins","description":"React Plugin Architecture for DraftJS including Slack-Like Emojis, FB-Like Mentions and Stickers","fork":false,"url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins","forks_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/forks","keys_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/teams","hooks_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/hooks","issue_events_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/events","assignees_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/tags","blobs_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/languages","stargazers_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/stargazers","contributors_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/contributors","subscribers_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/subscribers","subscription_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/subscription","commits_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/merges","archive_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/downloads","issues_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/labels{/name}","releases_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/releases{/id}","deployments_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/deployments","created_at":"2016-02-26T09:54:56Z","updated_at":"2016-04-10T14:07:38Z","pushed_at":"2016-04-11T05:24:26Z","git_url":"git://github.com/draft-js-plugins/draft-js-plugins.git","ssh_url":"git@github.com:draft-js-plugins/draft-js-plugins.git","clone_url":"https://github.com/draft-js-plugins/draft-js-plugins.git","svn_url":"https://github.com/draft-js-plugins/draft-js-plugins","homepage":"https://www.draft-js-plugins.com/","size":2593,"stargazers_count":820,"watchers_count":820,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":48,"mirror_url":null,"open_issues_count":36,"forks":48,"open_issues":36,"watchers":820,"default_branch":"master"}},"base":{"label":"draft-js-plugins:master","ref":"master","sha":"5b43e54acedf46275b3e1b566138adde0752e439","user":{"login":"draft-js-plugins","id":17958833,"avatar_url":"https://avatars.githubusercontent.com/u/17958833?v=3","gravatar_id":"","url":"https://api.github.com/users/draft-js-plugins","html_url":"https://github.com/draft-js-plugins","followers_url":"https://api.github.com/users/draft-js-plugins/followers","following_url":"https://api.github.com/users/draft-js-plugins/following{/other_user}","gists_url":"https://api.github.com/users/draft-js-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/draft-js-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draft-js-plugins/subscriptions","organizations_url":"https://api.github.com/users/draft-js-plugins/orgs","repos_url":"https://api.github.com/users/draft-js-plugins/repos","events_url":"https://api.github.com/users/draft-js-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/draft-js-plugins/received_events","type":"Organization","site_admin":false},"repo":{"id":52595230,"name":"draft-js-plugins","full_name":"draft-js-plugins/draft-js-plugins","owner":{"login":"draft-js-plugins","id":17958833,"avatar_url":"https://avatars.githubusercontent.com/u/17958833?v=3","gravatar_id":"","url":"https://api.github.com/users/draft-js-plugins","html_url":"https://github.com/draft-js-plugins","followers_url":"https://api.github.com/users/draft-js-plugins/followers","following_url":"https://api.github.com/users/draft-js-plugins/following{/other_user}","gists_url":"https://api.github.com/users/draft-js-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/draft-js-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draft-js-plugins/subscriptions","organizations_url":"https://api.github.com/users/draft-js-plugins/orgs","repos_url":"https://api.github.com/users/draft-js-plugins/repos","events_url":"https://api.github.com/users/draft-js-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/draft-js-plugins/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/draft-js-plugins/draft-js-plugins","description":"React Plugin Architecture for DraftJS including Slack-Like Emojis, FB-Like Mentions and Stickers","fork":false,"url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins","forks_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/forks","keys_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/teams","hooks_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/hooks","issue_events_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/events","assignees_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/tags","blobs_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/languages","stargazers_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/stargazers","contributors_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/contributors","subscribers_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/subscribers","subscription_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/subscription","commits_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/merges","archive_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/downloads","issues_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/labels{/name}","releases_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/releases{/id}","deployments_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/deployments","created_at":"2016-02-26T09:54:56Z","updated_at":"2016-04-10T14:07:38Z","pushed_at":"2016-04-11T05:24:26Z","git_url":"git://github.com/draft-js-plugins/draft-js-plugins.git","ssh_url":"git@github.com:draft-js-plugins/draft-js-plugins.git","clone_url":"https://github.com/draft-js-plugins/draft-js-plugins.git","svn_url":"https://github.com/draft-js-plugins/draft-js-plugins","homepage":"https://www.draft-js-plugins.com/","size":2593,"stargazers_count":820,"watchers_count":820,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":48,"mirror_url":null,"open_issues_count":36,"forks":48,"open_issues":36,"watchers":820,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/pulls/187"},"html":{"href":"https://github.com/draft-js-plugins/draft-js-plugins/pull/187"},"issue":{"href":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/187"},"comments":{"href":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/pulls/187/comments"},"review_comment":{"href":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/pulls/187/commits"},"statuses":{"href":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/statuses/48e72572f964f5a797f77beaf3632f05563ce5be"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"nikgraf","id":223045,"avatar_url":"https://avatars.githubusercontent.com/u/223045?v=3","gravatar_id":"","url":"https://api.github.com/users/nikgraf","html_url":"https://github.com/nikgraf","followers_url":"https://api.github.com/users/nikgraf/followers","following_url":"https://api.github.com/users/nikgraf/following{/other_user}","gists_url":"https://api.github.com/users/nikgraf/gists{/gist_id}","starred_url":"https://api.github.com/users/nikgraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikgraf/subscriptions","organizations_url":"https://api.github.com/users/nikgraf/orgs","repos_url":"https://api.github.com/users/nikgraf/repos","events_url":"https://api.github.com/users/nikgraf/events{/privacy}","received_events_url":"https://api.github.com/users/nikgraf/received_events","type":"User","site_admin":false},"comments":3,"review_comments":1,"commits":9,"additions":68,"deletions":5,"changed_files":2}}