Skip to content

Adjust attach syntax for Backdrop. #159

@Wylbur

Description

@Wylbur

I have the RC3 version of the module installed.
Editing a node with a body field.
Using CKEditor5, and trying to insert a image via the media module.

The media overlay never appears, I just get a small overlay with the word "Loading".

Here's the error message from the console

description_toggle.js?v=1.32.1:4

Uncaught TypeError: context.querySelectorAll is not a function
    at Object.attach (description_toggle.js?v=1.32.1:4:15)
    at Object.<anonymous> (backdrop.js?v=1.32.1:73:12)
    at ce.each (jquery.js?v=3.7.1:2:3179)
    at Backdrop.attachBehaviors (backdrop.js?v=1.32.1:71:5)
    at Object.insert (ajax.js?v=1.32.1:675:16)
    at Backdrop.ajax.commands.openDialog (<anonymous>:91:17)
    at Backdrop.ajax.success (ajax.js?v=1.32.1:513:42)
    at Object.success (ajax.js?v=1.32.1:241:19)
    at c (jquery.js?v=3.7.1:2:25304)
    at Object.fireWith [as resolveWith]

Switching to the Seven admin theme resolves the issue for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions