Problem/Motivation
When attempting to open the link dialog using CKEditor 4 in Drupal 11, the editor triggers an AJAX 404 error:
An AJAX HTTP error occurred.
HTTP Result Code: 404
Path: /editor/dialog/link/basic_html
ResponseText: {"message":"No route found for \"POST https://example.com/editor/dialog/link/basic_html\""}
In Drupal 8/9/10, EditorLinkDialog.php and the associated route /editor/dialog/link/{editor} were hosted in Drupal core's editor module. When CKEditor 4 core integration was removed in Drupal 10/11, that controller and route were dropped from core.
Steps to reproduce
- Install Drupal 11 with the ckeditor (CKEditor 4) contrib module.
- Edit a text format (e.g., Basic HTML) to use CKEditor 4.
- Edit a node using this text format and click the Link icon in the CKEditor toolbar.
- Result: Browser console reports a 404 AjaxError on /editor/dialog/link/basic_html.
Proposed resolution
Move EditorLinkDialog.php from legacy core paths into modules/contrib/ckeditor/src/Form/EditorLinkDialog.php.
Registers the route /editor/dialog/link/{editor} mapping to EditorLinkDialog in ckeditor.routing.yml .
Issue fork ckeditor-3625505
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
Comment #2
vladimirausComment #3
vladimiraus