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.

Error

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

CommentFileSizeAuthor
advanced_link_error.png98.36 KBjastraat

Comments

jastraat created an issue. See original summary.

jastraat’s picture

Issue summary: View changes
weseze’s picture

Just 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.

jannakha’s picture

@ weseze Which version of drupal are you testing on?

Is it possible for you to upgrade Drupal to 10.5 or 11.2?

weseze’s picture

We 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.

jcandan’s picture

Tested 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).

  • duaelfr committed 8d4869de on 2.2.x
    Issue #3526150: fix missing cancel button.
    
duaelfr’s picture

Status: Active » Fixed

Thanks for reporting. This is now fixed and will be included in the upcoming 2.2.9 release.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.