Problem/Motivation

When installing a recipe for editors, the following error is thrown.

  There were validation errors in editor.editor.basic_html:
  - settings.plugins.editor_advanced_link_link: Configuration for the enabled plugin "<
  em class="placeholder">Advanced links</em>" (<em class="placeholder">editor_advanced_
  link_link</em>) is missing.

Steps to reproduce

This happens on any recipe that comes with an editor and you install the recipe AFTER installing this module.

Example:

drush si minimal;
drush en editor_advanced_link; 
drush recipe ../web/core/recipes/basic_html_format_editor;
1/3 [▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░]
Installed CKEditor 5 module.

In RecipeConfigInstaller.php line 70:

  There were validation errors in editor.editor.basic_html:
  - settings.plugins.editor_advanced_link_link: Configuration for the enabled plugin "<
  em class="placeholder">Advanced links</em>" (<em class="placeholder">editor_advanced_
  link_link</em>) is missing.

Proposed resolution

TBD

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

andyg5000 created an issue. See original summary.

andyg5000’s picture

Issue summary: View changes

Wrapped in code blocks.

thejimbirch made their first commit to this issue’s fork.

thejimbirch’s picture

Status: Active » Needs review

See if this works Andy.

When installing the module via a Drupal recipe, the editor configuration (like editor.editor.basic_html) includes settings for the plugin at the path: settings.plugins.editor_advanced_link_link

However, the schema only defined ckeditor5.plugin.editor_advanced_link_link, which is the base plugin configuration. It was missing the schema definition for how this plugin's settings appear within editor configuration also.

I added the following schema definition:

# Editor configuration settings for the Advanced Link plugin
editor.settings.plugins.editor_advanced_link_link:
  type: ckeditor5.plugin.editor_advanced_link_link

This should tell Drupal that when the editor_advanced_link_link plugin appears under editor.settings.plugins, it should use the same schema structure defined in ckeditor5.plugin.editor_advanced_link_link.

andyg5000’s picture

Status: Needs review » Needs work

Hey Jim,

Did that fix the issue for you when running the recipes (like my example above)? I'm still seeing the error after adding those items to editor_advanced_link schema file.

thejimbirch’s picture

I didn't have time to test. Was hoping that would work.

mgstables’s picture

This did not fix the issue. I'm getting the same error when installing the easy_email_express recipe, and therefore can't install it.