CKEditorError: can't access property "element", this.linkUI.toolbarView.unlinkButtonView is undefined

Created on 1 July 2025, 12 days ago

Problem/Motivation

Starting to view errors in the console when I want to add a link, or even just selecting/clicking on a string with a link on the ckeditor.

Uncaught CKEditorError: can't access property "element", this.linkUI.toolbarView.unlinkButtonView is undefined
Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#erro...'t access property "element", this.linkUI.toolbarView.unlinkButtonView is undefined
afterInit http://xxx.local/modules/contrib/editor_file/js/build/drupalFile.js?syq3...
once http://xxx.local/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dl...
fire http://xxx.local/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dl...
e http://xxx.local/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dl...

So the first click generate this error, and so don't trigger the panel to add or edit a link, but the second click works fine and we can add ou edit a link.

Steps to reproduce

Add a link button and the drupal File button.
Try add a link on a string.
Error is visible in the console

Proposed resolution

@todo

Remaining tasks

@todo

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇫🇷France flocondetoile Lyon

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

Comments & Activities

Production build 0.71.5 2024