Skip to content
Permalink
Browse files

Ckeditor plugin multiple buttons (#173)

* Wrap %s with double quotes

* Fix single quotes issues

* Replace single quote with two quotes

* Update the text for multiple buttons

* Add new translation string, update an example
  • Loading branch information...
LOBsTerr authored and jmolivas committed Apr 22, 2018
1 parent b2d6bb3 commit d7b74db080db77482e0da73797c47aa252ed72f4
Showing with 13 additions and 2 deletions.
  1. +13 −2 translations/generate.plugin.ckeditorbutton.yml
@@ -6,18 +6,29 @@ options:
class: 'Plugin class name'
label: 'Plugin label'
plugin-id: 'Plugin ID. NOTE: This corresponds to the CKEditor plugin name. It is the first argument of the CKEDITOR.plugins.add() function in the plugin.js file.'
button-name: 'Button name. NOTE: This corresponds to the CKEditor button name. They are the first argument of the editor.ui.addButton() or editor.ui.addRichCombo() functions in the plugin.js file.'
button-icon-path: 'Button icon path. This is the path to the icon/image of the button.'
buttons: 'CKEditor buttons.'
button-properties: 'Enter a new button properties.'
questions:
module: 'Enter the module name'
class: 'Enter the plugin class name'
label: 'Enter the plugin label'
plugin-id: 'Enter the plugin ID. NOTE: This corresponds to the CKEditor plugin name. It is the first argument of the CKEDITOR.plugins.add() function in the plugin.js file.'
button-name: 'Enter the button name. NOTE: This corresponds to the CKEditor button name. They are the first argument of the editor.ui.addButton() or editor.ui.addRichCombo() functions in the plugin.js file.'
button-icon-path: 'Enter the button icon path'
button-label: 'Enter the button label'
button-add: 'Do you want to add another button?'
examples:
- description: 'Generate plugin CKEditor button specifying the module name, the class, the label, its id, the button name and the icon path'
execution: |
drupal generate:plugin:ckeditorbutton \
--module="modulename" \
--class="DefaultCKEditorButton" \
--label="Default ckeditor button" \
--plugin-id="default_ckeditor_button" \
--buttons='name":"Default ckeditor button", "label":"Default ckeditor button", "icon":"modules/custom/modulename/js/plugins/default_ckeditor_button/images/icon.png"' \
--buttons='name":"My ckeditor button", "label":"My ckeditor button", "icon":"modules/custom/modulename/js/plugins/my_ckeditor_button/images/icon.png"' \
--no-interaction
drupal generate:plugin:ckeditorbutton \
--module="modulename" \
--class="DefaultCKEditorButton" \

0 comments on commit d7b74db

Please sign in to comment.
You can’t perform that action at this time.