Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProcessPageEditImageSelect always defaults to first Repeater item #1482

Closed
Toutouwai opened this issue Dec 9, 2021 · 2 comments
Closed

ProcessPageEditImageSelect always defaults to first Repeater item #1482

Toutouwai opened this issue Dec 9, 2021 · 2 comments

Comments

@Toutouwai
Copy link

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
ryancramerdesign added a commit to processwire/processwire that referenced this issue Dec 10, 2021
@ryancramerdesign
Copy link
Member

Thanks @Toutouwai I've pushed a fix for this issue.

@Toutouwai
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants