Skip to content

Reflection used within Matrix displays html encoded output #7

@kerryj89

Description

@kerryj89

Matrix cell data automatically goes through form_prep() (https://docs.pixelandtonic.com/matrix/changelog.html#matrix-2-3). form_textarea() that is used by Reflection also runs through form_prep() (see note: https://docs.expressionengine.com/latest/development/legacy/helpers/form_helper.html#form_prep)... so basically it's running through it twice before output which renders it useless.

I can't see any easy parameters to disable execution of form_prep() subprocess when calling form_textarea(), so I have an ugly solution to replace the return statement in the meanwhile until you or someone figures out a more elegant way.

ft.reflection, line 116:
return '<textarea name="' . $this->cell_name . '" cols="90" rows="12" id="test" class="codemirror matrix-textarea" theme="' . $this->settings['theme'] . '" mode="' . $this->settings['mode'] . '" style="display: none;">' . $data . '</textarea>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions