Editor: styles from the content of an editor field are leaking out to the base page #2707
Labels
[∞]
Velocity rating (Fibonacci)
focus: editor
Main focus is Editor
priority: trival
Least important issues
team: landmark
For Landmark issues
type: enhancement ✨
Describe the bug
HCM team is using a tool (Telematry for one) to generate an html document of a .doc or .pdf file. Their use case is wanting to show a resume for candidate applying for a job. So they take exactly what their tool gives them, and it gets saved into our data. So we, unfortunately, aren't the ones trying to manually enter styles.
Use Case
If an editor field has a value that includes a <style> section, or uses classes in their html, the styles will leak into each other.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The styles from the base page shouldn't affect the editor content, and the styles from the editor content shouldn't affect the base page.
Version
Screenshots
The header title and "Some text here" are in the times new roman font, since the contents of the editor set font-family: 'Times New Roman'
Platform
Additional context
Also in that test, I have a commented out suggestion of wrapping the contents of the editor into an iframe (using srcdoc and sandbox). I realize this is a dramatic change, but it does isolate the styles from each other.
The text was updated successfully, but these errors were encountered: