When drupal media adds a tag with empty attributes, an error occurs when editing again.

Created on 12 April 2024, over 1 year ago

When drupal media adds a tag, and the href attribute of the a tag is empty, and the target attribute is _blank, save it. Then enter the editing page to report an error.

ckeditor5.js?sbnjgc:477 TypeError: Cannot read properties of undefined (reading 'getAttribute')
at nn (ckeditor5-dll.js?v=40.2.0:5:405795)
at sn.setAttribute (ckeditor5-dll.js?v=40.2.0:5:397475)
at e.on.priority (drupalMedia.js?sbnjgc:1:20237)
at Ri.fire (ckeditor5-dll.js?v=40.2.0:5:604093)
at Ri._convertItem (ckeditor5-dll.js?v=40.2.0:5:322075)
at Ri._convertChildren (ckeditor5-dll.js?v=40.2.0:5:322535)
at Object.convertChildren (ckeditor5-dll.js?v=40.2.0:5:320649)
at Vi.upcastDispatcher.on.priority (ckeditor5-dll.js?v=40.2.0:5:326676)
at Ri.fire (ckeditor5-dll.js?v=40.2.0:5:604093)
at Ri._convertItem (ckeditor5-dll.js?v=40.2.0:5:322180)

🐛 Bug report
Status

Active

Version

10.2

Component
CKEditor 5 

Last updated about 20 hours ago

Created by

🇨🇳China murphyw

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

Comments & Activities

  • Issue created by @murphyw
  • Status changed to Postponed: needs info about 1 year ago
  • 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

    I cannot reproduce this.

    Please provide exact steps to reproduce on a new Drupal site (to eliminate the possibility this is due to some contrib module or due to particular configuration on your site). 🙏

  • Status changed to Closed: outdated 6 months ago
  • 🇳🇿New Zealand quietone

    More information was asked for 9 months ago and it has not been supplied.

    Since we need more information to move forward with this issue, and none has been supplied in 9 months I am closing this as outdated. If you are experiencing this problem provide steps to reproduce the issue starting from "Install Drupal core" and set the status to 'Active'.

Production build 0.71.5 2024