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

Grid mangles anchor "name" attribute value in third-party textareas #185

Closed
obfuscode opened this issue Apr 17, 2019 · 4 comments · Fixed by #2364
Closed

Grid mangles anchor "name" attribute value in third-party textareas #185

obfuscode opened this issue Apr 17, 2019 · 4 comments · Fixed by #2364
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.

Comments

@obfuscode
Copy link
Contributor

obfuscode commented Apr 17, 2019

Description of the problem
HTML anchors in the content of third-party add-ons gets mangled by the Grid's namespaceForGrid method. I've confirmed the data is correct leaving the add-on's grid_display_field() method. This happens in both Wygwam and Editor and is related to the same bug that was fixed in EE previously in non-grid fields (sorry, I don't have a reference to that issue/fix at the moment).

How To Reproduce
Steps to reproduce the behavior:

  1. Create a third-party Wygwam or Editor add-on field inside a Grid field with:
<p>Test <a name="my_anchor">anchor</a> area</p>
  1. Save the entry

Screenshots / Videos / Template Code
anchor-issue

Environment Details:

  • Version: 5.2.2
  • PHP Version: 7.1
  • MySQL Version: 8.0.12
  • OS: macOS
  • Web Server: nginx
@aaroncrawford
Copy link

Do we have an expected ETA on this one? Got a few sites with this bug.

@tw-ec
Copy link

tw-ec commented Jan 6, 2020

+1
Does anyone have a workaround?

@aaroncrawford
Copy link

In my case, I'm using Fluid fields and this bug has me adding just another text field to the fluid group that's just dedicated to anchors. Not the best approach, but it works for now until this is resolved.

@obfuscode obfuscode added the Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on. label Jan 13, 2020
@intoeetive
Copy link
Contributor

intoeetive commented Jul 29, 2021

As of to-be-released EE 6.1 (6.dev) I wasn't able to replicate this with RTE (using CKEditor or Redactor engines). However I confirm the issue exists in Wygwam (not checked Editor)

Which makes me think it's related to referenced add-ons - @obfuscode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.
Projects
None yet
4 participants