{"action":"created","issue":{"url":"https://api.github.com/repos/zenoamaro/react-quill/issues/3","labels_url":"https://api.github.com/repos/zenoamaro/react-quill/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/zenoamaro/react-quill/issues/3/comments","events_url":"https://api.github.com/repos/zenoamaro/react-quill/issues/3/events","html_url":"https://github.com/zenoamaro/react-quill/pull/3","id":68954478,"number":3,"title":"Support for colours","user":{"login":"chrismcv","id":145466,"avatar_url":"https://avatars.githubusercontent.com/u/145466?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismcv","html_url":"https://github.com/chrismcv","followers_url":"https://api.github.com/users/chrismcv/followers","following_url":"https://api.github.com/users/chrismcv/following{/other_user}","gists_url":"https://api.github.com/users/chrismcv/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismcv/subscriptions","organizations_url":"https://api.github.com/users/chrismcv/orgs","repos_url":"https://api.github.com/users/chrismcv/repos","events_url":"https://api.github.com/users/chrismcv/events{/privacy}","received_events_url":"https://api.github.com/users/chrismcv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-16T15:56:12Z","updated_at":"2015-04-17T08:15:08Z","closed_at":"2015-04-17T08:13:48Z","pull_request":{"url":"https://api.github.com/repos/zenoamaro/react-quill/pulls/3","html_url":"https://github.com/zenoamaro/react-quill/pull/3","diff_url":"https://github.com/zenoamaro/react-quill/pull/3.diff","patch_url":"https://github.com/zenoamaro/react-quill/pull/3.patch"},"body":"Hey, \r\nAdded support for colours - though there might be a good case for defaulting this based on the control type (if items is null).\r\n\r\nAlso changed render item to use a switch, as it was becoming a little repetitive.\r\n\r\nThanks, \r\nChris\r\n\r\n```\r\ncolors = [\"rgb(0, 0, 0)\", \"rgb(230, 0, 0)\", \"rgb(255, 153, 0)\", \"rgb(255, 255, 0)\", \"rgb(0, 138, 0)\", \"rgb(0, 102, 204)\", \"rgb(153, 51, 255)\", \"rgb(255, 255, 255)\", \"rgb(250, 204, 204)\", \"rgb(255, 235, 204)\", \"rgb(255, 255, 204)\", \"rgb(204, 232, 204)\", \"rgb(204, 224, 245)\", \"rgb(235, 214, 255)\", \"rgb(187, 187, 187)\", \"rgb(240, 102, 102)\", \"rgb(255, 194, 102)\", \"rgb(255, 255, 102)\", \"rgb(102, 185, 102)\", \"rgb(102, 163, 224)\", \"rgb(194, 133, 255)\", \"rgb(136, 136, 136)\", \"rgb(161, 0, 0)\", \"rgb(178, 107, 0)\", \"rgb(178, 178, 0)\", \"rgb(0, 97, 0)\", \"rgb(0, 71, 178)\", \"rgb(107, 36, 178)\", \"rgb(68, 68, 68)\", \"rgb(92, 0, 0)\", \"rgb(102, 61, 0)\", \"rgb(102, 102, 0)\", \"rgb(0, 55, 0)\", \"rgb(0, 41, 102)\", \"rgb(61, 20, 102)\"]\r\ncolors = colors.map (c) -> value:c\r\n```\r\nthen \r\n```\r\n{ label:'Text', type:'group', items: [\r\n    { type:'bold', label:'Bold' },\r\n    { type:'italic', label:'Italic' },\r\n    { type:'strike', label:'Strike' },\r\n    { type:'underline', label:'Underline' },\r\n    { type:'link', label:'Link' }\r\n    { type:'background', label:'Background Colour', items:colors} \r\n    { type:'color', label:'Colour', items:colors}\r\n  ]},\r\n```"},"comment":{"url":"https://api.github.com/repos/zenoamaro/react-quill/issues/comments/93940570","html_url":"https://github.com/zenoamaro/react-quill/pull/3#issuecomment-93940570","issue_url":"https://api.github.com/repos/zenoamaro/react-quill/issues/3","id":93940570,"user":{"login":"zenoamaro","id":493139,"avatar_url":"https://avatars.githubusercontent.com/u/493139?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoamaro","html_url":"https://github.com/zenoamaro","followers_url":"https://api.github.com/users/zenoamaro/followers","following_url":"https://api.github.com/users/zenoamaro/following{/other_user}","gists_url":"https://api.github.com/users/zenoamaro/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoamaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoamaro/subscriptions","organizations_url":"https://api.github.com/users/zenoamaro/orgs","repos_url":"https://api.github.com/users/zenoamaro/repos","events_url":"https://api.github.com/users/zenoamaro/events{/privacy}","received_events_url":"https://api.github.com/users/zenoamaro/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T08:15:08Z","updated_at":"2015-04-17T08:15:08Z","body":"Thanks!\r\n\r\nYeah, I think enabling the color palette by default is a good idea (or at least, people would expect that).\r\n\r\nI've been meaning to add that so thanks a lot!"}}