Skip to content

[5.10.8.1]: CP slideout screens created using the Craft.createElementEditor method fail after opening a second one. #19196

Description

@BramMortier

What happened?

Description

I'm building a custom search for the control panel and want to make use of the slideouts to allow for quick editing without navigating to a new page. This works as intended but only for the first slideout... The code to open the slideout:

const slideout = Craft.createElementEditor('craft\\elements\\Entry', {
    siteId: Craft.siteId,
    elementId: entryId,
});

I can see errors and warnings in the console pointing to CKeditor loading duplicate maps and injecting buttons multiple times. Anything I'm doing wrong here?

Image

The console shows the following

Steps to reproduce

Expected behavior

Actual behavior

Craft CMS version

Craft Pro 5.10.8.1

PHP version

8.3

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

CKeditor 5.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions