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
Comments
Comment #2
andyg5000Wrapped in code blocks.
Comment #5
thejimbirch commentedSee 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_linkHowever, 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:
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.
Comment #6
andyg5000Hey 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.
Comment #7
thejimbirch commentedI didn't have time to test. Was hoping that would work.
Comment #8
mgstablesThis did not fix the issue. I'm getting the same error when installing the easy_email_express recipe, and therefore can't install it.