Problem/Motivation
This is likely the same issue in #3371633: Exceptions thrown when toggling Advanced section of linking form but I cannot reopen that one.
When "open in a new window" is not enabled as an option, a JS exception is thrown, and the cancel button is not displayed in the link dialog.

In addition, even when "open in new window" is present, the following error occurs when expanding the advanced link option:
ckeditor5-dll.js?v=44.0.0:5 Uncaught CKEditorError: collection-add-item-already-exists
Steps to reproduce
Configure the text format to use some elements of advanced link but not "open in new window."
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
jastraat commentedComment #3
weseze commentedJust tested this on the latest (2.2.8) release and this is still an issue.
Javascript error is still there and causes the widget to not work properly.
Comment #4
jannakha commented@ weseze Which version of drupal are you testing on?
Is it possible for you to upgrade Drupal to 10.5 or 11.2?
Comment #5
weseze commentedWe are currently on 11.1.8. Updating to 11.2.x is not currently possible. I will report back when we update to 11.2.
Comment #6
jcandan commentedTested 2.3.1 on Drupal 11.2. This issue does not exist in 2.3.1.
This bug is isolated to 2.2.x releases, and should be addressed in that branch for continued support up to Drupal 10.4 and 11.1 and below core versions.
Drupal 10.4 and 11.1 will receive security coverage until December 2025 (source).
Comment #8
duaelfrThanks for reporting. This is now fixed and will be included in the upcoming 2.2.9 release.