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
Rich text fields munge html in view mode #21
Comments
Out of context: we recently gave up on trying to fix this same issue in the word replacement admin screen in core: the 'source' and 'replacement' fields have different behaviors with html inputs, making it impossible to enter a word replacement where either the source or replacement string includes html tags. So most likely not an easy issue to deal with ... |
This appears to be a system-wide problem, possibly caused by the latest round of security fixes. Not just profile forms but core forms are also struggling. Try this:
|
@colemanw FYI - editing the same data in the contact custom field block doesn't garble it - but there is a difference here - ie. I am specifically referring to fields that support html - as defined by their html type & data type. I did wonder if there should be a permission to be able to save html data fields since they are intrinsically insecure |
Here's a can of worms for ya!
Rich text fields - when edited normally save html to the database - here is what a field looks like in view mode when edited via an inbuilt form
Edited via the contactlayout block they save escaped html - so it looks like this
And here is how it renders when viewed on a 'normal' tab
This is how the field looks in the ContactEditor when it is submitted - ie straight after $values = $this->exportValues();
The text was updated successfully, but these errors were encountered: