Skip to content

ProcessPageEditImageSelect always defaults to first Repeater item #1482

@Toutouwai

Description

@Toutouwai

Short description of the issue

When inserting an image into a CKEditor field inside a repeater, or in a template that also contains a Repeater field, ProcessPageEditImageSelect always defaults to the first Repeater item.

In the demo below, note that the CKEditor field in the template is below the Repeater field. This seems to affect the ProcessPageEditImageSelect behaviour.

select-image

Related forum topic: https://processwire.com/talk/topic/26493-processpageeditimageselect-problem-with-repeaters/

Expected behavior

ProcessPageEditImageSelect defaults to the page that contains the CKEditor field, be it a Repeater page or the edited page itself.

Setup/Environment

  • ProcessWire version: 3.0.190

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions