{"action":"created","issue":{"url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2151","repository_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole","labels_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2151/labels{/name}","comments_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2151/comments","events_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2151/events","html_url":"https://github.com/hechoendrupal/DrupalConsole/issues/2151","id":149661636,"number":2151,"title":"[generate:plugin:ckeditorbutton] Ask for button icon path","user":{"login":"dabito","id":1800016,"avatar_url":"https://avatars.githubusercontent.com/u/1800016?v=3","gravatar_id":"","url":"https://api.github.com/users/dabito","html_url":"https://github.com/dabito","followers_url":"https://api.github.com/users/dabito/followers","following_url":"https://api.github.com/users/dabito/following{/other_user}","gists_url":"https://api.github.com/users/dabito/gists{/gist_id}","starred_url":"https://api.github.com/users/dabito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dabito/subscriptions","organizations_url":"https://api.github.com/users/dabito/orgs","repos_url":"https://api.github.com/users/dabito/repos","events_url":"https://api.github.com/users/dabito/events{/privacy}","received_events_url":"https://api.github.com/users/dabito/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/labels/enhancement","name":"enhancement","color":"009800"},{"url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/labels/novice","name":"novice","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-20T05:17:23Z","updated_at":"2016-06-12T15:50:25Z","closed_at":"2016-06-12T15:50:11Z","body":"# Problem/motivation\r\n\r\nCurrently when you generate a new ckeditor button, path to the icon is hardcoded in the source:\r\n\r\n```php\r\n  public function getButtons() {\r\n    // Make sure that the path to the image matches the file structure of\r\n    // the CKEditor plugin you are implementing.\r\n    $path = drupal_get_path('module', '{{ module }}') . '/js/plugins/{{ plugin_id }}';\r\n    return array(\r\n      '{{ button_name }}' => array(\r\n        'label' => t('{{ label }}'),\r\n        'image' => $path . '/images/icon.png',\r\n      ),\r\n    );\r\n  }\r\n```\r\n\r\n# Solution\r\n\r\nAsk for image path before plugin generation."},"comment":{"url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/comments/225444631","html_url":"https://github.com/hechoendrupal/DrupalConsole/issues/2151#issuecomment-225444631","issue_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2151","id":225444631,"user":{"login":"dabito","id":1800016,"avatar_url":"https://avatars.githubusercontent.com/u/1800016?v=3","gravatar_id":"","url":"https://api.github.com/users/dabito","html_url":"https://github.com/dabito","followers_url":"https://api.github.com/users/dabito/followers","following_url":"https://api.github.com/users/dabito/following{/other_user}","gists_url":"https://api.github.com/users/dabito/gists{/gist_id}","starred_url":"https://api.github.com/users/dabito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dabito/subscriptions","organizations_url":"https://api.github.com/users/dabito/orgs","repos_url":"https://api.github.com/users/dabito/repos","events_url":"https://api.github.com/users/dabito/events{/privacy}","received_events_url":"https://api.github.com/users/dabito/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T15:50:25Z","updated_at":"2016-06-12T15:50:25Z","body":"Awesome work, @mauhg !"}}
{"actor":{"display_login":"dabito"}}