GitHub PullRequestEvent at 2014-03-06 07:23:56
Repository: bootstrap-markdown
Actor: emagnier
Payload: {"action":"opened","number":42,"pull_request":{"url":"https://api.github.com/repos/toopay/bootstrap-markdown/pulls/42","id":13249385,"html_url":"https://github.com/toopay/bootstrap-markdown/pull/42","diff_url":"https://github.com/toopay/bootstrap-markdown/pull/42.diff","patch_url":"https://github.com/toopay/bootstrap-markdown/pull/42.patch","issue_url":"https://api.github.com/repos/toopay/bootstrap-markdown/issues/42","number":42,"state":"open","title":"Add an option to rearrange all the buttons and group buttons","user":{"login":"emagnier","id":1045997,"avatar_url":"https://gravatar.com/avatar/1ec545f9c7687fdcfb36f5c59a806333?d=https%3A%2F%2Fidenticons.github.com%2F68431bb3215b2eb67934eabc426ca384.png&r=x","gravatar_id":"1ec545f9c7687fdcfb36f5c59a806333","url":"https://api.github.com/users/emagnier","html_url":"https://github.com/emagnier","followers_url":"https://api.github.com/users/emagnier/followers","following_url":"https://api.github.com/users/emagnier/following{/other_user}","gists_url":"https://api.github.com/users/emagnier/gists{/gist_id}","starred_url":"https://api.github.com/users/emagnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emagnier/subscriptions","organizations_url":"https://api.github.com/users/emagnier/orgs","repos_url":"https://api.github.com/users/emagnier/repos","events_url":"https://api.github.com/users/emagnier/events{/privacy}","received_events_url":"https://api.github.com/users/emagnier/received_events","type":"User","site_admin":false},"body":"This PR will fix this issue: https://github.com/toopay/bootstrap-markdown/issues/41\r\n\r\nIt give the possibility to:\r\n* Rearrange all buttons & group buttons in whatever order;\r\n* Remove any button that we don't need;\r\n* And of course move the preview button after any additional buttons.\r\n\r\nThe new option `rearrangeButtons` take an array of values.\r\nIn this array we could add:\r\n* A `string`: corresponding to an existing group-name;\r\n* An `object`: containing a name (the object property) + an array of existing button-name (the object value).\r\n\r\nHere a complete sample code:\r\n\r\n```js\r\n$(\"#target-editor-with-custom-buttons\").markdown({\r\n  additionalButtons: [\r\n    [{\r\n      name: \"groupCustom\",\r\n      data: [{\r\n        name: \"cmdBeer\",\r\n        toggle: true,\r\n        title: \"Beer\",\r\n        icon: \"glyphicon glyphicon-glass\",\r\n        callback: function(e){}\r\n      },\r\n      {\r\n        name: 'cmdSave',\r\n        toggle: false,\r\n        title: 'Save',\r\n        icon: 'glyphicon glyphicon-floppy-disk',\r\n        callback: function () {}\r\n      },\r\n      {\r\n        name: 'cmdFullscreen',\r\n        toggle: false,\r\n        title: 'Fullscreen',\r\n        icon: 'glyphicon glyphicon-fullscreen',\r\n        callback: function () {}\r\n      }]\r\n    }]\r\n  ],\r\n  rearrangeButtons: [\r\n    {\r\n      'groupBeer': [\r\n        'cmdBeer'\r\n      ]\r\n    },\r\n    'groupFont',\r\n    'groupLink',\r\n    {\r\n      'groupMisc': [\r\n        'cmdList',\r\n        'cmdSave'\r\n      ]\r\n    },\r\n    {\r\n      'groupUtil': [\r\n        'cmdFullscreen',\r\n        'cmdPreview'\r\n      ]\r\n    }\r\n  ]\r\n})\r\n```\r\n\r\nProbably this weekend, I will send another PR to update the documentation on the website.\r\n\r\n","created_at":"2014-03-06T07:23:56Z","updated_at":"2014-03-06T07:23:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/toopay/bootstrap-markdown/pulls/42/commits","review_comments_url":"https://api.github.com/repos/toopay/bootstrap-markdown/pulls/42/comments","review_comment_url":"https://api.github.com/repos/toopay/bootstrap-markdown/pulls/comments/{number}","comments_url":"https://api.github.com/repos/toopay/bootstrap-markdown/issues/42/comments","statuses_url":"https://api.github.com/repos/toopay/bootstrap-markdown/statuses/40dbdb727140857adcac2f891a722a117700a0c5","head":{"label":"emagnier:rearrange-btns","ref":"rearrange-btns","sha":"40dbdb727140857adcac2f891a722a117700a0c5","user":{"login":"emagnier","id":1045997,"avatar_url":"https://gravatar.com/avatar/1ec545f9c7687fdcfb36f5c59a806333?d=https%3A%2F%2Fidenticons.github.com%2F68431bb3215b2eb67934eabc426ca384.png&r=x","gravatar_id":"1ec545f9c7687fdcfb36f5c59a806333","url":"https://api.github.com/users/emagnier","html_url":"https://github.com/emagnier","followers_url":"https://api.github.com/users/emagnier/followers","following_url":"https://api.github.com/users/emagnier/following{/other_user}","gists_url":"https://api.github.com/users/emagnier/gists{/gist_id}","starred_url":"https://api.github.com/users/emagnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emagnier/subscriptions","organizations_url":"https://api.github.com/users/emagnier/orgs","repos_url":"https://api.github.com/users/emagnier/repos","events_url":"https://api.github.com/users/emagnier/events{/privacy}","received_events_url":"https://api.github.com/users/emagnier/received_events","type":"User","site_admin":false},"repo":{"id":17468299,"name":"bootstrap-markdown","full_name":"emagnier/bootstrap-markdown","owner":{"login":"emagnier","id":1045997,"avatar_url":"https://gravatar.com/avatar/1ec545f9c7687fdcfb36f5c59a806333?d=https%3A%2F%2Fidenticons.github.com%2F68431bb3215b2eb67934eabc426ca384.png&r=x","gravatar_id":"1ec545f9c7687fdcfb36f5c59a806333","url":"https://api.github.com/users/emagnier","html_url":"https://github.com/emagnier","followers_url":"https://api.github.com/users/emagnier/followers","following_url":"https://api.github.com/users/emagnier/following{/other_user}","gists_url":"https://api.github.com/users/emagnier/gists{/gist_id}","starred_url":"https://api.github.com/users/emagnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emagnier/subscriptions","organizations_url":"https://api.github.com/users/emagnier/orgs","repos_url":"https://api.github.com/users/emagnier/repos","events_url":"https://api.github.com/users/emagnier/events{/privacy}","received_events_url":"https://api.github.com/users/emagnier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emagnier/bootstrap-markdown","description":"Bootstrap plugin for markdown editing","fork":true,"url":"https://api.github.com/repos/emagnier/bootstrap-markdown","forks_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/forks","keys_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/teams","hooks_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/hooks","issue_events_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/issues/events{/number}","events_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/events","assignees_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/assignees{/user}","branches_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/branches{/branch}","tags_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/tags","blobs_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/statuses/{sha}","languages_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/languages","stargazers_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/stargazers","contributors_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/contributors","subscribers_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/subscribers","subscription_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/subscription","commits_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/issues/comments/{number}","contents_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/contents/{+path}","compare_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/merges","archive_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/downloads","issues_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/issues{/number}","pulls_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/pulls{/number}","milestones_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/milestones{/number}","notifications_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/labels{/name}","releases_url":"https://api.github.com/repos/emagnier/bootstrap-markdown/releases{/id}","created_at":"2014-03-06T06:23:48Z","updated_at":"2014-03-06T07:23:56Z","pushed_at":"2014-03-06T06:41:51Z","git_url":"git://github.com/emagnier/bootstrap-markdown.git","ssh_url":"git@github.com:emagnier/bootstrap-markdown.git","clone_url":"https://github.com/emagnier/bootstrap-markdown.git","svn_url":"https://github.com/emagnier/bootstrap-markdown","homepage":null,"size":823,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"toopay:master","ref":"master","sha":"84e031d7dffbde20f98d8d5615a9f4c0bc4a23c6","user":{"login":"toopay","id":534245,"avatar_url":"https://gravatar.com/avatar/a1f48a50d32521c580da6d69fb950d14?d=https%3A%2F%2Fidenticons.github.com%2F1e2d63083615eb25239d747a6da422f4.png&r=x","gravatar_id":"a1f48a50d32521c580da6d69fb950d14","url":"https://api.github.com/users/toopay","html_url":"https://github.com/toopay","followers_url":"https://api.github.com/users/toopay/followers","following_url":"https://api.github.com/users/toopay/following{/other_user}","gists_url":"https://api.github.com/users/toopay/gists{/gist_id}","starred_url":"https://api.github.com/users/toopay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toopay/subscriptions","organizations_url":"https://api.github.com/users/toopay/orgs","repos_url":"https://api.github.com/users/toopay/repos","events_url":"https://api.github.com/users/toopay/events{/privacy}","received_events_url":"https://api.github.com/users/toopay/received_events","type":"User","site_admin":false},"repo":{"id":8905877,"name":"bootstrap-markdown","full_name":"toopay/bootstrap-markdown","owner":{"login":"toopay","id":534245,"avatar_url":"https://gravatar.com/avatar/a1f48a50d32521c580da6d69fb950d14?d=https%3A%2F%2Fidenticons.github.com%2F1e2d63083615eb25239d747a6da422f4.png&r=x","gravatar_id":"a1f48a50d32521c580da6d69fb950d14","url":"https://api.github.com/users/toopay","html_url":"https://github.com/toopay","followers_url":"https://api.github.com/users/toopay/followers","following_url":"https://api.github.com/users/toopay/following{/other_user}","gists_url":"https://api.github.com/users/toopay/gists{/gist_id}","starred_url":"https://api.github.com/users/toopay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toopay/subscriptions","organizations_url":"https://api.github.com/users/toopay/orgs","repos_url":"https://api.github.com/users/toopay/repos","events_url":"https://api.github.com/users/toopay/events{/privacy}","received_events_url":"https://api.github.com/users/toopay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toopay/bootstrap-markdown","description":"Bootstrap plugin for markdown editing","fork":false,"url":"https://api.github.com/repos/toopay/bootstrap-markdown","forks_url":"https://api.github.com/repos/toopay/bootstrap-markdown/forks","keys_url":"https://api.github.com/repos/toopay/bootstrap-markdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toopay/bootstrap-markdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toopay/bootstrap-markdown/teams","hooks_url":"https://api.github.com/repos/toopay/bootstrap-markdown/hooks","issue_events_url":"https://api.github.com/repos/toopay/bootstrap-markdown/issues/events{/number}","events_url":"https://api.github.com/repos/toopay/bootstrap-markdown/events","assignees_url":"https://api.github.com/repos/toopay/bootstrap-markdown/assignees{/user}","branches_url":"https://api.github.com/repos/toopay/bootstrap-markdown/branches{/branch}","tags_url":"https://api.github.com/repos/toopay/bootstrap-markdown/tags","blobs_url":"https://api.github.com/repos/toopay/bootstrap-markdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toopay/bootstrap-markdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toopay/bootstrap-markdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/toopay/bootstrap-markdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toopay/bootstrap-markdown/statuses/{sha}","languages_url":"https://api.github.com/repos/toopay/bootstrap-markdown/languages","stargazers_url":"https://api.github.com/repos/toopay/bootstrap-markdown/stargazers","contributors_url":"https://api.github.com/repos/toopay/bootstrap-markdown/contributors","subscribers_url":"https://api.github.com/repos/toopay/bootstrap-markdown/subscribers","subscription_url":"https://api.github.com/repos/toopay/bootstrap-markdown/subscription","commits_url":"https://api.github.com/repos/toopay/bootstrap-markdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/toopay/bootstrap-markdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/toopay/bootstrap-markdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/toopay/bootstrap-markdown/issues/comments/{number}","contents_url":"https://api.github.com/repos/toopay/bootstrap-markdown/contents/{+path}","compare_url":"https://api.github.com/repos/toopay/bootstrap-markdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toopay/bootstrap-markdown/merges","archive_url":"https://api.github.com/repos/toopay/bootstrap-markdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toopay/bootstrap-markdown/downloads","issues_url":"https://api.github.com/repos/toopay/bootstrap-markdown/issues{/number}","pulls_url":"https://api.github.com/repos/toopay/bootstrap-markdown/pulls{/number}","milestones_url":"https://api.github.com/repos/toopay/bootstrap-markdown/milestones{/number}","notifications_url":"https://api.github.com/repos/toopay/bootstrap-markdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toopay/bootstrap-markdown/labels{/name}","releases_url":"https://api.github.com/repos/toopay/bootstrap-markdown/releases{/id}","created_at":"2013-03-20T14:17:30Z","updated_at":"2014-02-20T03:58:49Z","pushed_at":"2014-02-20T03:58:48Z","git_url":"git://github.com/toopay/bootstrap-markdown.git","ssh_url":"git@github.com:toopay/bootstrap-markdown.git","clone_url":"https://github.com/toopay/bootstrap-markdown.git","svn_url":"https://github.com/toopay/bootstrap-markdown","homepage":null,"size":823,"stargazers_count":333,"watchers_count":333,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":68,"mirror_url":null,"open_issues_count":12,"forks":68,"open_issues":12,"watchers":333,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/toopay/bootstrap-markdown/pulls/42"},"html":{"href":"https://github.com/toopay/bootstrap-markdown/pull/42"},"issue":{"href":"https://api.github.com/repos/toopay/bootstrap-markdown/issues/42"},"comments":{"href":"https://api.github.com/repos/toopay/bootstrap-markdown/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/toopay/bootstrap-markdown/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/toopay/bootstrap-markdown/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/toopay/bootstrap-markdown/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/toopay/bootstrap-markdown/statuses/40dbdb727140857adcac2f891a722a117700a0c5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":50,"deletions":5,"changed_files":1}}