Skip to content

[generate:plugin:ckeditorbutton] Spelling error of variable in plugin.php.twig #4203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ooneill547 opened this issue Nov 22, 2019 · 3 comments

Comments

@ooneill547
Copy link

Problem/Motivation

I was unable to generate the module files to install a CKEditor plugin in Drupal 8 due to a misspelled variable in 'console/templates/module/src/Plugin/CKEditorPlugin/plugin.php.twig'.

How to reproduce

  • Drupal version: 8.7.9
  • Console version: 1.9.4
  • Console Launcher version: 1.9.4

Steps to reproduce

  • Run drupal generate:plugin:ckeditorbutton
  • Follow instructions to enter appropriate values when requested.
  • Choose yes to proceed with the operation when prompted.

An error, 'variable "pligins_id" does not exist' appears:
image

Solution

Edit the variable in line 8 of the file 'console/templates/module/src/Plugin/CKEditorPlugin/plugin.php.twig' from
CKEDITOR.plugins.add('{{ pligins_id }}', {
to
CKEDITOR.plugins.add('{{ plugin_id }}', {
as seen in #4202

Rerun drupal generate:plugin:ckeditorbutton and the generator should complete successfully.

@ronaldmulero
Copy link

Thank you @ooneill547
I had the same issue. Fixing the typo resolved it.

Drupal Console version 1.9.7
Drupal version 8.9.13

@vrwired
Copy link

vrwired commented Jul 27, 2021

thanks for reporting, as it still needs manual fix.

Drupal Console version 1.9.7
Drupal version 8.9.17

@LOBsTerr
Copy link
Member

It was fixed here #4339

Thank you for your contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants