Skip to content

Front End Editing: Image/Link modals have incorrect page context when editing an inline field from a different page #784

Open
@thetuningspoon

Description

@thetuningspoon

Short description of the issue

I have a CKEditor field which I've enabled inline front-end editing for by wrapping it in the <edit page="" field=""></edit> syntax. The field is from a page other than the current $page. When I try to add an image or link a file, it is using the current $page to store/retrieve the files instead of the page of the field that I am editing.

Expected behavior

I expect to be able to upload and select images and files that are stored on the page of the field that I'm editing (As is the case with modal front-end editing)

Actual behavior

I can only upload/select images on the current page.

Steps to reproduce the issue

  1. <edit page="123" field="myCkEditorField"><?= $pages->get(123)->myCkEditorField ?></edit>
  2. Double click the field content to open the inline editor, then click on the image button.
  3. Weep

Setup/Environment

  • ProcessWire version: 3.0.123
  • (Optional) PHP version: 7

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