{"action":"created","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/6805","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/6805/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/6805/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/6805/events","html_url":"https://github.com/WordPress/gutenberg/pull/6805","id":324148059,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg4ODMyNzA4","number":6805,"title":"Implement File block","user":{"login":"mirka","id":555336,"node_id":"MDQ6VXNlcjU1NTMzNg==","avatar_url":"https://avatars3.githubusercontent.com/u/555336?v=4","gravatar_id":"","url":"https://api.github.com/users/mirka","html_url":"https://github.com/mirka","followers_url":"https://api.github.com/users/mirka/followers","following_url":"https://api.github.com/users/mirka/following{/other_user}","gists_url":"https://api.github.com/users/mirka/gists{/gist_id}","starred_url":"https://api.github.com/users/mirka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirka/subscriptions","organizations_url":"https://api.github.com/users/mirka/orgs","repos_url":"https://api.github.com/users/mirka/repos","events_url":"https://api.github.com/users/mirka/events{/privacy}","received_events_url":"https://api.github.com/users/mirka/received_events","type":"User","site_admin":false},"labels":[{"id":634645371,"node_id":"MDU6TGFiZWw2MzQ2NDUzNzE=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/New%20Block","name":"New Block","color":"62ABDB","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-05-17T19:06:20Z","updated_at":"2018-06-29T02:17:59Z","closed_at":"2018-06-29T02:17:59Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/WordPress/gutenberg/pulls/6805","html_url":"https://github.com/WordPress/gutenberg/pull/6805","diff_url":"https://github.com/WordPress/gutenberg/pull/6805.diff","patch_url":"https://github.com/WordPress/gutenberg/pull/6805.patch"},"body":"Closes #5462\r\n\r\n## Description\r\nImplements a File block with the following features:\r\n- [x] Editable text link\r\n- [x] Text link can be copy and pasted to create a normal link\r\n- [x] HTML5 download link\r\n- [x] Copy URL button to copy the media file URL to clipboard\r\n- [x] Accepts ~~both Media Library files and external URLs~~ only Media Library files\r\n- [x] Text link can be changed to point to the Attachment Page\r\n- [x] Text link can be changed to open in a new window\r\n- [x] Accepts and uploads a file drag-and-dropped into the editor (or placeholder)\r\n- [x] Transforms to/from Audio and Video blocks\r\n- [x] Download button text is editable\r\n- [x] Download button is optional\r\n- ~~(?) Background Color and Text Color options in sidebar~~\r\n\r\n## How has this been tested?\r\nTry the features above.\r\n\r\n## Screenshots <!-- if applicable -->\r\n<img width=\"502\" alt=\"screen shot 2018-05-27 at 5 56 09\" src=\"https://user-images.githubusercontent.com/555336/40580102-ab6f7fa2-6172-11e8-8ddf-d0a8d4f91e18.png\">\r\n\r\n## Things I don't plan on including in this PR (but should be done eventually)\r\n- ~~Integrate error messaging using #4203~~ done, thanks to #6820\r\n- ~~Add allowed mime type checking to #4203~~ submitted separately as #6968\r\n- ~~Refactor the misplaced CSS in [core-blocks/image/editor.scss](https://github.com/WordPress/gutenberg/pull/6805/files#diff-1e7ab348c11a3ea0cec34ff2eb2d8337L62)~~ done, thanks to #6820\r\n- Add drag and drop support to Audio/Video blocks so they can take precedence over this generic File block\r\n- ~~Copy URL button may not work correctly in Safari~~ submitted separately as #7106 "},"comment":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments/401227333","html_url":"https://github.com/WordPress/gutenberg/pull/6805#issuecomment-401227333","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/6805","id":401227333,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTIyNzMzMw==","user":{"login":"noisysocks","id":612155,"node_id":"MDQ6VXNlcjYxMjE1NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/612155?v=4","gravatar_id":"","url":"https://api.github.com/users/noisysocks","html_url":"https://github.com/noisysocks","followers_url":"https://api.github.com/users/noisysocks/followers","following_url":"https://api.github.com/users/noisysocks/following{/other_user}","gists_url":"https://api.github.com/users/noisysocks/gists{/gist_id}","starred_url":"https://api.github.com/users/noisysocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noisysocks/subscriptions","organizations_url":"https://api.github.com/users/noisysocks/orgs","repos_url":"https://api.github.com/users/noisysocks/repos","events_url":"https://api.github.com/users/noisysocks/events{/privacy}","received_events_url":"https://api.github.com/users/noisysocks/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T02:17:59Z","updated_at":"2018-06-29T02:17:59Z","author_association":"MEMBER","body":"Thanks for your excellent work on this @mirka. @talldan and I are going to pick up on this in https://github.com/WordPress/gutenberg/pull/7622."}}
{"actor":{"display_login":"noisysocks"}}