Uncaught CKEditorError: can't convert undefined to object

Created on 6 August 2025, 11 days ago

Problem/motivation

Steps to reproduce

  1. Install drupal 10.5.1 and Linkit 7.0.8
  2. Try to add a link with linkit
  3. Observe following error in console :
Uncaught CKEditorError: can't convert undefined to object
Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-can't convert undefined to object
    _handleExtraFormFieldSubmit https://bsr-site.ddev.site/modules/contrib/linkit/js/build/linkit.js?t0kdzl:1
    once https://bsr-site.ddev.site/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=45.2.0:5
    fire https://bsr-site.ddev.site/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=45.2.0:5
    e https://bsr-site.ddev.site/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=45.2.0:5
    execute https://bsr-site.ddev.site/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=45.2.0:5
    execute https://bsr-site.ddev.site/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=45.2.0:5
    _createFormView https://bsr-site.ddev.site/core/assets/vendor/ckeditor5/link/link.js?v=45.2.0:5
    fire https://bsr-site.ddev.site/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=45.2.0:5
    a https://bsr-site.ddev.site/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=45.2.0:5
    fire https://bsr-site.ddev.site/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=45.2.0:5
    t https://bsr-site.ddev.site/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=45.2.0:5
ckeditor5-dll.js:5:637128

Proposed resolution

This module uses Gitlab CI for automated testing of proposed code changes. To contribute code changes, create a merge request. Patch files will not trigger automated testing and are not sufficient for review.
πŸ› Bug report
Status

Active

Version

7.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @pvppop
  • πŸ‡ΊπŸ‡ΈUnited States mark_fullmer Tucson

    Thanks for reporting this. On a fresh installation of Drupal core 10.5.1 with Linkit 7.0.8 I am not able to reproduce, given the provided Steps to Reproduce. Have you added any other CKEditor-related plugins, etc. in the context where you observed the issue? Can you reproduce on a "vanilla" installation of the "Standard" installation profile?

    The 7.0.8 release did include a change that removed some checking that definitely corresponds to the error you're reporting in the console, so I believe you that there is a problem and I believe we can resolve it by restoring some of the code in https://git.drupalcode.org/project/linkit/-/commit/3582746022e08364383f9...

    But I'd first like to be able to reproduce the problem so I can understand it. Notably, this is also not triggering issues in any of Linkit's automated tests.

  • Thank you for your reply.
    Sorry, the bug was with linkit 6.1.4. I tested with 7.0.8 and the bug was still present, but I think some cache was still present or I tested on the wrong window in my browser (production instead of local test instance). I tested again today and now it works fine! Sorry for the false alert and thank you for your work!

  • πŸ‡ΊπŸ‡ΈUnited States mark_fullmer Tucson
Production build 0.71.5 2024