{"action":"created","comment":{"url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments/77493309","id":77493309,"diff_hunk":"@@ -0,0 +1,57 @@\n+/**\n+ * @file\n+ * CKEditor Link hreflang code.\n+ */\n+\n+(function($) {\n+  CKEDITOR.plugins.add(\"multisite_wysiwyg_link_hreflang\", {\n+    init: function(editor) {\n+      CKEDITOR.on(\"dialogDefinition\", function(e) {\n+        if ((e.editor != editor) || (e.data.name != 'link')) {\n+          return;\n+        }\n+\n+        // Overrides definition.\n+        var definition = e.data.definition;\n+\n+        // Removing the \"lang\" input and adding the \"hreflang\" one\n+        // in the advanced tab.\n+        var advancedTab = definition.getContents(\"advanced\");\n+        // Removing \"lang\" input.\n+        advancedTab.remove(\"advLangCode\");\n+\n+        // Adding \"hreflang\" input.\n+        advancedTab.add({\n+          type: \"text\",\n+          id: \"multisite_wysiwyg_link_hreflang\",\n+          label: Drupal.t(\"Language code (hreflang)\"),\n+          title: Drupal.t(\"Language code (hreflang): the code is on 2 characters (ex: en).\"),","path":"profiles/common/modules/features/multisite_wysiwyg/ckeditor/plugins/link_hreflang/plugin.js","position":28,"original_position":28,"commit_id":"4c28a6ee6b1012f9e1f0f0ea8449163831ce1d04","original_commit_id":"4c28a6ee6b1012f9e1f0f0ea8449163831ce1d04","user":{"login":"jfhovinne","id":428556,"avatar_url":"https://avatars.githubusercontent.com/u/428556?v=3","gravatar_id":"","url":"https://api.github.com/users/jfhovinne","html_url":"https://github.com/jfhovinne","followers_url":"https://api.github.com/users/jfhovinne/followers","following_url":"https://api.github.com/users/jfhovinne/following{/other_user}","gists_url":"https://api.github.com/users/jfhovinne/gists{/gist_id}","starred_url":"https://api.github.com/users/jfhovinne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfhovinne/subscriptions","organizations_url":"https://api.github.com/users/jfhovinne/orgs","repos_url":"https://api.github.com/users/jfhovinne/repos","events_url":"https://api.github.com/users/jfhovinne/events{/privacy}","received_events_url":"https://api.github.com/users/jfhovinne/received_events","type":"User","site_admin":false},"body":"I think we need a better explanation here, such as:\r\n\"The language of the linked URL (2 characters code, e.g. 'en')\"\r\nAlso, a dropdown would certainly help the end-user, instead of having to manually type the code.","created_at":"2016-09-05T09:24:38Z","updated_at":"2016-09-05T09:24:38Z","html_url":"https://github.com/ec-europa/platform-dev/pull/863#discussion_r77493309","pull_request_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/863","_links":{"self":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments/77493309"},"html":{"href":"https://github.com/ec-europa/platform-dev/pull/863#discussion_r77493309"},"pull_request":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/863"}}},"pull_request":{"url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/863","id":83393437,"html_url":"https://github.com/ec-europa/platform-dev/pull/863","diff_url":"https://github.com/ec-europa/platform-dev/pull/863.diff","patch_url":"https://github.com/ec-europa/platform-dev/pull/863.patch","issue_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/863","number":863,"state":"open","locked":false,"title":"feat(Contributing): Add link_hreflang ckeditor plugin","user":{"login":"gillesdeudon","id":8696408,"avatar_url":"https://avatars.githubusercontent.com/u/8696408?v=3","gravatar_id":"","url":"https://api.github.com/users/gillesdeudon","html_url":"https://github.com/gillesdeudon","followers_url":"https://api.github.com/users/gillesdeudon/followers","following_url":"https://api.github.com/users/gillesdeudon/following{/other_user}","gists_url":"https://api.github.com/users/gillesdeudon/gists{/gist_id}","starred_url":"https://api.github.com/users/gillesdeudon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gillesdeudon/subscriptions","organizations_url":"https://api.github.com/users/gillesdeudon/orgs","repos_url":"https://api.github.com/users/gillesdeudon/repos","events_url":"https://api.github.com/users/gillesdeudon/events{/privacy}","received_events_url":"https://api.github.com/users/gillesdeudon/received_events","type":"User","site_admin":false},"body":"Define the link_hreflang ckeditor plugin for the https://webgate.ec.europa.eu/CITnet/jira/browse/NEXTEUROPA-12797\r\n\r\nNeeds:\r\n* drush updated\r\n* drush cc all","created_at":"2016-08-31T06:05:02Z","updated_at":"2016-09-05T09:24:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9867e26c353445536352fc7f25c3b3a79eb98a6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/863/commits","review_comments_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/863/comments","review_comment_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/863/comments","statuses_url":"https://api.github.com/repos/ec-europa/platform-dev/statuses/4c28a6ee6b1012f9e1f0f0ea8449163831ce1d04","head":{"label":"ec-europa:FEATURE/NEXTEUROPA-12797","ref":"FEATURE/NEXTEUROPA-12797","sha":"4c28a6ee6b1012f9e1f0f0ea8449163831ce1d04","user":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars.githubusercontent.com/u/10885565?v=3","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"repo":{"id":41666809,"name":"platform-dev","full_name":"ec-europa/platform-dev","owner":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars.githubusercontent.com/u/10885565?v=3","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ec-europa/platform-dev","description":"NextEuropa platform","fork":false,"url":"https://api.github.com/repos/ec-europa/platform-dev","forks_url":"https://api.github.com/repos/ec-europa/platform-dev/forks","keys_url":"https://api.github.com/repos/ec-europa/platform-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ec-europa/platform-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ec-europa/platform-dev/teams","hooks_url":"https://api.github.com/repos/ec-europa/platform-dev/hooks","issue_events_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/events{/number}","events_url":"https://api.github.com/repos/ec-europa/platform-dev/events","assignees_url":"https://api.github.com/repos/ec-europa/platform-dev/assignees{/user}","branches_url":"https://api.github.com/repos/ec-europa/platform-dev/branches{/branch}","tags_url":"https://api.github.com/repos/ec-europa/platform-dev/tags","blobs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ec-europa/platform-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/ec-europa/platform-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ec-europa/platform-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/ec-europa/platform-dev/languages","stargazers_url":"https://api.github.com/repos/ec-europa/platform-dev/stargazers","contributors_url":"https://api.github.com/repos/ec-europa/platform-dev/contributors","subscribers_url":"https://api.github.com/repos/ec-europa/platform-dev/subscribers","subscription_url":"https://api.github.com/repos/ec-europa/platform-dev/subscription","commits_url":"https://api.github.com/repos/ec-europa/platform-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/ec-europa/platform-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/ec-europa/platform-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/ec-europa/platform-dev/contents/{+path}","compare_url":"https://api.github.com/repos/ec-europa/platform-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ec-europa/platform-dev/merges","archive_url":"https://api.github.com/repos/ec-europa/platform-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ec-europa/platform-dev/downloads","issues_url":"https://api.github.com/repos/ec-europa/platform-dev/issues{/number}","pulls_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/ec-europa/platform-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/ec-europa/platform-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ec-europa/platform-dev/labels{/name}","releases_url":"https://api.github.com/repos/ec-europa/platform-dev/releases{/id}","deployments_url":"https://api.github.com/repos/ec-europa/platform-dev/deployments","created_at":"2015-08-31T09:16:12Z","updated_at":"2016-08-20T16:59:21Z","pushed_at":"2016-09-02T16:36:23Z","git_url":"git://github.com/ec-europa/platform-dev.git","ssh_url":"git@github.com:ec-europa/platform-dev.git","clone_url":"https://github.com/ec-europa/platform-dev.git","svn_url":"https://github.com/ec-europa/platform-dev","homepage":null,"size":54435,"stargazers_count":23,"watchers_count":23,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":33,"forks":22,"open_issues":33,"watchers":23,"default_branch":"master"}},"base":{"label":"ec-europa:master","ref":"master","sha":"e0d7e92132fb6607811c8641b39177c69bc7208d","user":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars.githubusercontent.com/u/10885565?v=3","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"repo":{"id":41666809,"name":"platform-dev","full_name":"ec-europa/platform-dev","owner":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars.githubusercontent.com/u/10885565?v=3","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ec-europa/platform-dev","description":"NextEuropa platform","fork":false,"url":"https://api.github.com/repos/ec-europa/platform-dev","forks_url":"https://api.github.com/repos/ec-europa/platform-dev/forks","keys_url":"https://api.github.com/repos/ec-europa/platform-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ec-europa/platform-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ec-europa/platform-dev/teams","hooks_url":"https://api.github.com/repos/ec-europa/platform-dev/hooks","issue_events_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/events{/number}","events_url":"https://api.github.com/repos/ec-europa/platform-dev/events","assignees_url":"https://api.github.com/repos/ec-europa/platform-dev/assignees{/user}","branches_url":"https://api.github.com/repos/ec-europa/platform-dev/branches{/branch}","tags_url":"https://api.github.com/repos/ec-europa/platform-dev/tags","blobs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ec-europa/platform-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/ec-europa/platform-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ec-europa/platform-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/ec-europa/platform-dev/languages","stargazers_url":"https://api.github.com/repos/ec-europa/platform-dev/stargazers","contributors_url":"https://api.github.com/repos/ec-europa/platform-dev/contributors","subscribers_url":"https://api.github.com/repos/ec-europa/platform-dev/subscribers","subscription_url":"https://api.github.com/repos/ec-europa/platform-dev/subscription","commits_url":"https://api.github.com/repos/ec-europa/platform-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/ec-europa/platform-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/ec-europa/platform-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/ec-europa/platform-dev/contents/{+path}","compare_url":"https://api.github.com/repos/ec-europa/platform-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ec-europa/platform-dev/merges","archive_url":"https://api.github.com/repos/ec-europa/platform-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ec-europa/platform-dev/downloads","issues_url":"https://api.github.com/repos/ec-europa/platform-dev/issues{/number}","pulls_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/ec-europa/platform-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/ec-europa/platform-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ec-europa/platform-dev/labels{/name}","releases_url":"https://api.github.com/repos/ec-europa/platform-dev/releases{/id}","deployments_url":"https://api.github.com/repos/ec-europa/platform-dev/deployments","created_at":"2015-08-31T09:16:12Z","updated_at":"2016-08-20T16:59:21Z","pushed_at":"2016-09-02T16:36:23Z","git_url":"git://github.com/ec-europa/platform-dev.git","ssh_url":"git@github.com:ec-europa/platform-dev.git","clone_url":"https://github.com/ec-europa/platform-dev.git","svn_url":"https://github.com/ec-europa/platform-dev","homepage":null,"size":54435,"stargazers_count":23,"watchers_count":23,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":33,"forks":22,"open_issues":33,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/863"},"html":{"href":"https://github.com/ec-europa/platform-dev/pull/863"},"issue":{"href":"https://api.github.com/repos/ec-europa/platform-dev/issues/863"},"comments":{"href":"https://api.github.com/repos/ec-europa/platform-dev/issues/863/comments"},"review_comments":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/863/comments"},"review_comment":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/863/commits"},"statuses":{"href":"https://api.github.com/repos/ec-europa/platform-dev/statuses/4c28a6ee6b1012f9e1f0f0ea8449163831ce1d04"}}}}
{"actor":{"display_login":"jfhovinne"}}