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

Load HTML in iframe? #262

Open
triopter opened this issue Jan 15, 2024 · 0 comments
Open

Load HTML in iframe? #262

triopter opened this issue Jan 15, 2024 · 0 comments

Comments

@triopter
Copy link

triopter commented Jan 15, 2024

Love this module, but there's one big issue I'm having with it, which is that it uses the admin's default styling, making it basically impossible to show unstyled HTML rendering, and excruciating to show it with the styles you'll use on the front-end. In particular, the way <ul> and <h2> elements are displayed are very opinionated in the admin in ways that don't translate to typical article rendering.

This could be fixed by loading the HTML using an iframe instead of a div. Is that something you'd consider implementing? I'll monkey-patch the javascript if I have to, but from what I can tell, that will be pretty fragile as a hack and also requires a bunch of CSP munging.

Example of undesirable rendering:
Screenshot 2024-01-15 at 5 17 53 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant