{"action":"created","comment":{"url":"https://api.github.com/repos/oltodo/hodorjs/pulls/comments/23642920","id":23642920,"diff_hunk":"@@ -5,10 +5,38 @@ var React = require('react/addons');\n \n var AppStore = require('../../stores/AppStore');\n var AppActions = require('../../actions/AppActions');\n+var CommandFactory = require('../../services/factory/command-factory');\n+var HtmlParser = require('../../services/parser/html-parser');\n \n var BoldButton = React.createClass({\n   handleClick: function() {\n+    // get block id selected\n+    var blockId = AppStore.getSelectedBlock();","path":"src/js/components/buttons/BoldButton.js","position":10,"original_position":10,"commit_id":"ec1730d79c70fb63144c6c3a2f506d90e62de85e","original_commit_id":"15a2a9ebf7d650ab5f2aa2c5ba71422723228f09","user":{"login":"yohannpoli","id":903021,"avatar_url":"https://avatars.githubusercontent.com/u/903021?v=3","gravatar_id":"","url":"https://api.github.com/users/yohannpoli","html_url":"https://github.com/yohannpoli","followers_url":"https://api.github.com/users/yohannpoli/followers","following_url":"https://api.github.com/users/yohannpoli/following{/other_user}","gists_url":"https://api.github.com/users/yohannpoli/gists{/gist_id}","starred_url":"https://api.github.com/users/yohannpoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yohannpoli/subscriptions","organizations_url":"https://api.github.com/users/yohannpoli/orgs","repos_url":"https://api.github.com/users/yohannpoli/repos","events_url":"https://api.github.com/users/yohannpoli/events{/privacy}","received_events_url":"https://api.github.com/users/yohannpoli/received_events","type":"User","site_admin":false},"body":"le CommandManager me parait être bien comme solution, et ce sera centralisé","created_at":"2015-01-27T21:08:31Z","updated_at":"2015-01-27T21:08:31Z","html_url":"https://github.com/oltodo/hodorjs/pull/15#discussion_r23642920","pull_request_url":"https://api.github.com/repos/oltodo/hodorjs/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/oltodo/hodorjs/pulls/comments/23642920"},"html":{"href":"https://github.com/oltodo/hodorjs/pull/15#discussion_r23642920"},"pull_request":{"href":"https://api.github.com/repos/oltodo/hodorjs/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/oltodo/hodorjs/pulls/15","id":28118492,"html_url":"https://github.com/oltodo/hodorjs/pull/15","diff_url":"https://github.com/oltodo/hodorjs/pull/15.diff","patch_url":"https://github.com/oltodo/hodorjs/pull/15.patch","issue_url":"https://api.github.com/repos/oltodo/hodorjs/issues/15","number":15,"state":"open","locked":false,"title":"Rangy dom update","user":{"login":"yohannpoli","id":903021,"avatar_url":"https://avatars.githubusercontent.com/u/903021?v=3","gravatar_id":"","url":"https://api.github.com/users/yohannpoli","html_url":"https://github.com/yohannpoli","followers_url":"https://api.github.com/users/yohannpoli/followers","following_url":"https://api.github.com/users/yohannpoli/following{/other_user}","gists_url":"https://api.github.com/users/yohannpoli/gists{/gist_id}","starred_url":"https://api.github.com/users/yohannpoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yohannpoli/subscriptions","organizations_url":"https://api.github.com/users/yohannpoli/orgs","repos_url":"https://api.github.com/users/yohannpoli/repos","events_url":"https://api.github.com/users/yohannpoli/events{/privacy}","received_events_url":"https://api.github.com/users/yohannpoli/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-27T15:43:18Z","updated_at":"2015-01-27T21:08:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ddc544f177e0df8f2848af9fe1161e418156e6c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/oltodo/hodorjs/pulls/15/commits","review_comments_url":"https://api.github.com/repos/oltodo/hodorjs/pulls/15/comments","review_comment_url":"https://api.github.com/repos/oltodo/hodorjs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/oltodo/hodorjs/issues/15/comments","statuses_url":"https://api.github.com/repos/oltodo/hodorjs/statuses/ec1730d79c70fb63144c6c3a2f506d90e62de85e","head":{"label":"oltodo:rangy_dom_update","ref":"rangy_dom_update","sha":"ec1730d79c70fb63144c6c3a2f506d90e62de85e","user":{"login":"oltodo","id":483842,"avatar_url":"https://avatars.githubusercontent.com/u/483842?v=3","gravatar_id":"","url":"https://api.github.com/users/oltodo","html_url":"https://github.com/oltodo","followers_url":"https://api.github.com/users/oltodo/followers","following_url":"https://api.github.com/users/oltodo/following{/other_user}","gists_url":"https://api.github.com/users/oltodo/gists{/gist_id}","starred_url":"https://api.github.com/users/oltodo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oltodo/subscriptions","organizations_url":"https://api.github.com/users/oltodo/orgs","repos_url":"https://api.github.com/users/oltodo/repos","events_url":"https://api.github.com/users/oltodo/events{/privacy}","received_events_url":"https://api.github.com/users/oltodo/received_events","type":"User","site_admin":false},"repo":{"id":29241958,"name":"hodorjs","full_name":"oltodo/hodorjs","owner":{"login":"oltodo","id":483842,"avatar_url":"https://avatars.githubusercontent.com/u/483842?v=3","gravatar_id":"","url":"https://api.github.com/users/oltodo","html_url":"https://github.com/oltodo","followers_url":"https://api.github.com/users/oltodo/followers","following_url":"https://api.github.com/users/oltodo/following{/other_user}","gists_url":"https://api.github.com/users/oltodo/gists{/gist_id}","starred_url":"https://api.github.com/users/oltodo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oltodo/subscriptions","organizations_url":"https://api.github.com/users/oltodo/orgs","repos_url":"https://api.github.com/users/oltodo/repos","events_url":"https://api.github.com/users/oltodo/events{/privacy}","received_events_url":"https://api.github.com/users/oltodo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oltodo/hodorjs","description":"[WIP] A Javascript Block-Style & Ultra-Structured Text editor","fork":false,"url":"https://api.github.com/repos/oltodo/hodorjs","forks_url":"https://api.github.com/repos/oltodo/hodorjs/forks","keys_url":"https://api.github.com/repos/oltodo/hodorjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oltodo/hodorjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oltodo/hodorjs/teams","hooks_url":"https://api.github.com/repos/oltodo/hodorjs/hooks","issue_events_url":"https://api.github.com/repos/oltodo/hodorjs/issues/events{/number}","events_url":"https://api.github.com/repos/oltodo/hodorjs/events","assignees_url":"https://api.github.com/repos/oltodo/hodorjs/assignees{/user}","branches_url":"https://api.github.com/repos/oltodo/hodorjs/branches{/branch}","tags_url":"https://api.github.com/repos/oltodo/hodorjs/tags","blobs_url":"https://api.github.com/repos/oltodo/hodorjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oltodo/hodorjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oltodo/hodorjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/oltodo/hodorjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oltodo/hodorjs/statuses/{sha}","languages_url":"https://api.github.com/repos/oltodo/hodorjs/languages","stargazers_url":"https://api.github.com/repos/oltodo/hodorjs/stargazers","contributors_url":"https://api.github.com/repos/oltodo/hodorjs/contributors","subscribers_url":"https://api.github.com/repos/oltodo/hodorjs/subscribers","subscription_url":"https://api.github.com/repos/oltodo/hodorjs/subscription","commits_url":"https://api.github.com/repos/oltodo/hodorjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/oltodo/hodorjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/oltodo/hodorjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/oltodo/hodorjs/issues/comments/{number}","contents_url":"https://api.github.com/repos/oltodo/hodorjs/contents/{+path}","compare_url":"https://api.github.com/repos/oltodo/hodorjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oltodo/hodorjs/merges","archive_url":"https://api.github.com/repos/oltodo/hodorjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oltodo/hodorjs/downloads","issues_url":"https://api.github.com/repos/oltodo/hodorjs/issues{/number}","pulls_url":"https://api.github.com/repos/oltodo/hodorjs/pulls{/number}","milestones_url":"https://api.github.com/repos/oltodo/hodorjs/milestones{/number}","notifications_url":"https://api.github.com/repos/oltodo/hodorjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oltodo/hodorjs/labels{/name}","releases_url":"https://api.github.com/repos/oltodo/hodorjs/releases{/id}","created_at":"2015-01-14T11:52:43Z","updated_at":"2015-01-27T14:11:33Z","pushed_at":"2015-01-27T21:06:07Z","git_url":"git://github.com/oltodo/hodorjs.git","ssh_url":"git@github.com:oltodo/hodorjs.git","clone_url":"https://github.com/oltodo/hodorjs.git","svn_url":"https://github.com/oltodo/hodorjs","homepage":"","size":2048,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":4,"default_branch":"master"}},"base":{"label":"oltodo:master","ref":"master","sha":"14870e64d0091b24fff7eecd99f8a479f52b660f","user":{"login":"oltodo","id":483842,"avatar_url":"https://avatars.githubusercontent.com/u/483842?v=3","gravatar_id":"","url":"https://api.github.com/users/oltodo","html_url":"https://github.com/oltodo","followers_url":"https://api.github.com/users/oltodo/followers","following_url":"https://api.github.com/users/oltodo/following{/other_user}","gists_url":"https://api.github.com/users/oltodo/gists{/gist_id}","starred_url":"https://api.github.com/users/oltodo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oltodo/subscriptions","organizations_url":"https://api.github.com/users/oltodo/orgs","repos_url":"https://api.github.com/users/oltodo/repos","events_url":"https://api.github.com/users/oltodo/events{/privacy}","received_events_url":"https://api.github.com/users/oltodo/received_events","type":"User","site_admin":false},"repo":{"id":29241958,"name":"hodorjs","full_name":"oltodo/hodorjs","owner":{"login":"oltodo","id":483842,"avatar_url":"https://avatars.githubusercontent.com/u/483842?v=3","gravatar_id":"","url":"https://api.github.com/users/oltodo","html_url":"https://github.com/oltodo","followers_url":"https://api.github.com/users/oltodo/followers","following_url":"https://api.github.com/users/oltodo/following{/other_user}","gists_url":"https://api.github.com/users/oltodo/gists{/gist_id}","starred_url":"https://api.github.com/users/oltodo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oltodo/subscriptions","organizations_url":"https://api.github.com/users/oltodo/orgs","repos_url":"https://api.github.com/users/oltodo/repos","events_url":"https://api.github.com/users/oltodo/events{/privacy}","received_events_url":"https://api.github.com/users/oltodo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oltodo/hodorjs","description":"[WIP] A Javascript Block-Style & Ultra-Structured Text editor","fork":false,"url":"https://api.github.com/repos/oltodo/hodorjs","forks_url":"https://api.github.com/repos/oltodo/hodorjs/forks","keys_url":"https://api.github.com/repos/oltodo/hodorjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oltodo/hodorjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oltodo/hodorjs/teams","hooks_url":"https://api.github.com/repos/oltodo/hodorjs/hooks","issue_events_url":"https://api.github.com/repos/oltodo/hodorjs/issues/events{/number}","events_url":"https://api.github.com/repos/oltodo/hodorjs/events","assignees_url":"https://api.github.com/repos/oltodo/hodorjs/assignees{/user}","branches_url":"https://api.github.com/repos/oltodo/hodorjs/branches{/branch}","tags_url":"https://api.github.com/repos/oltodo/hodorjs/tags","blobs_url":"https://api.github.com/repos/oltodo/hodorjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oltodo/hodorjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oltodo/hodorjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/oltodo/hodorjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oltodo/hodorjs/statuses/{sha}","languages_url":"https://api.github.com/repos/oltodo/hodorjs/languages","stargazers_url":"https://api.github.com/repos/oltodo/hodorjs/stargazers","contributors_url":"https://api.github.com/repos/oltodo/hodorjs/contributors","subscribers_url":"https://api.github.com/repos/oltodo/hodorjs/subscribers","subscription_url":"https://api.github.com/repos/oltodo/hodorjs/subscription","commits_url":"https://api.github.com/repos/oltodo/hodorjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/oltodo/hodorjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/oltodo/hodorjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/oltodo/hodorjs/issues/comments/{number}","contents_url":"https://api.github.com/repos/oltodo/hodorjs/contents/{+path}","compare_url":"https://api.github.com/repos/oltodo/hodorjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oltodo/hodorjs/merges","archive_url":"https://api.github.com/repos/oltodo/hodorjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oltodo/hodorjs/downloads","issues_url":"https://api.github.com/repos/oltodo/hodorjs/issues{/number}","pulls_url":"https://api.github.com/repos/oltodo/hodorjs/pulls{/number}","milestones_url":"https://api.github.com/repos/oltodo/hodorjs/milestones{/number}","notifications_url":"https://api.github.com/repos/oltodo/hodorjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oltodo/hodorjs/labels{/name}","releases_url":"https://api.github.com/repos/oltodo/hodorjs/releases{/id}","created_at":"2015-01-14T11:52:43Z","updated_at":"2015-01-27T14:11:33Z","pushed_at":"2015-01-27T21:06:07Z","git_url":"git://github.com/oltodo/hodorjs.git","ssh_url":"git@github.com:oltodo/hodorjs.git","clone_url":"https://github.com/oltodo/hodorjs.git","svn_url":"https://github.com/oltodo/hodorjs","homepage":"","size":2048,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oltodo/hodorjs/pulls/15"},"html":{"href":"https://github.com/oltodo/hodorjs/pull/15"},"issue":{"href":"https://api.github.com/repos/oltodo/hodorjs/issues/15"},"comments":{"href":"https://api.github.com/repos/oltodo/hodorjs/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/oltodo/hodorjs/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/oltodo/hodorjs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/oltodo/hodorjs/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/oltodo/hodorjs/statuses/ec1730d79c70fb63144c6c3a2f506d90e62de85e"}}}}