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

Breaks iframes #6

Open
isthisthat opened this issue Dec 15, 2017 · 2 comments
Open

Breaks iframes #6

isthisthat opened this issue Dec 15, 2017 · 2 comments

Comments

@isthisthat
Copy link

When this plugin is on with default settings, iframes are no longer embedded (appear as html on the page instead, e.g. <iframe src=...). Wonder whether this can be fixed by adding iframe: '' in the elements whitelist? https://github.com/Sommerregen/grav-plugin-textformatter/blob/develop/textformatter.yaml#L81

@Sommerregen
Copy link
Owner

Hi @isthisthat ,

I think this has something to do with escaping in Grav? Do you have twig escaping on, or something in the template like {{ content|e }}? Especially, if you use Gantry, such options are set by default.

@isthisthat
Copy link
Author

Hi @Sommerregen, no I don't think so. Basically I'm using a fork of BootGrav and haven't modified much other than content. So my default template looks like this: https://github.com/moreplavec/BootGrav/blob/master/templates/default.html.twig

You can reproduce the error by installing this theme and pasting an iframe html into a default page.

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

2 participants