Cannot add media image when using quick-edit on a wysiwyg field

Created on 5 November 2019, over 4 years ago
Updated 9 November 2023, 8 months ago

Problem/Motivation

(for quick setup, Install Umami 8.8.x)

Steps to reproduce -

1. View an article, and click on quickedit on top-right corner
2. Place the cursor anywhere in the body, and click on add-media icon
3. Select the image from media_library
4. Click on "Insert Selected"

Result -
Image is not added, and there's an error in the console

plugin.js?t=0:148 Uncaught TypeError: Cannot read property 'getAttribute' of null
    at d.upcast (plugin.js?t=0:148)
    at Array.<anonymous> (<anonymous>:29:162)
    at iterator (<anonymous>:874:440)
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.htmlParser.element.forEach (<anonymous>:294:397)
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.htmlParser.fragment.forEach (<anonymous>:294:498)
    at e.<anonymous> (<anonymous>:887:94)
    at e.g (<anonymous>:10:70)
    at e.<anonymous> (<anonymous>:11:433)
    at e.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (<anonymous>:13:97)
    at CKEDITOR.htmlDataProcessor.toHtml (<anonymous>:315:222)

https://www.youtube.com/watch?v=nOCuBPgNink

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

1.0

Component
Media 

Last updated about 22 hours ago

Created by

🇺🇸United States shaal Boca Raton, FL

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024