Skip to content

Editor Styles Leaking and Affecting Global Page Styles #1506

Open
@ddevdan

Description

@ddevdan

Hi! I'm encountering an issue where the styles I've applied within the editor are unintentionally affecting the entire page.

Is there a way to avoid it? Like the reset css for when we don't want the parent page to affect the editor styles.


<style>body{background:red;} p{color:green} h2{background:blue; color:red;}</style>
<p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit, <strong>some text bold</strong> sed do eiusmod tempor incididunt ut
    labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
    aliquip ex ea commodo consequat.
</p>

<p>
    Duis aute <a href="https://x.com/AlexandreDemode" target="_blank">some link</a> irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
    pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
    mollit anim id est laborum.
</p>
        

Image

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