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

Youtube embed video with the iframe is not loading the video on the browser. #235

Closed
humphrey-mutuma opened this issue Sep 25, 2022 · 4 comments

Comments

@humphrey-mutuma
Copy link

<iframe frameborder="0" allowfullscreen="" src="https://www.youtube.com/embed/GSw5QANyiN8?t=49" data-proportion="true" data-percentage="75,75%" data-size="75%,75%" data-align="none" style="width: 100%; height: 100%;" data-index="0" data-file-name="GSw5QANyiN8?t=49" data-file-size="0" data-origin="100%,75%" data-rotate="" data-rotatex="" data-rotatey=""></iframe>
@humphrey-mutuma humphrey-mutuma changed the title How do we parse a youtube embed video? Youtube embed video with the iframe is not loading the video on the browser. Sep 25, 2022
@milesj
Copy link
Owner

milesj commented Sep 26, 2022

@humphrey-mutuma iframes are not allowed by default for security reasons. You need to use transformers I believe to make it work.

@humphrey-mutuma
Copy link
Author

@humphrey-mutuma iframes are not allowed by default for security reasons. You need to use transformers I believe to make it work.

Do you have any references on how to use transformers to make it work? or may be some sample code would be of great help.

@milesj
Copy link
Owner

milesj commented Sep 27, 2022

There's only examples in the docs: https://interweave.dev/docs/parser#replacing-elements

@humphrey-mutuma
Copy link
Author

There's only examples in the docs: https://interweave.dev/docs/parser#replacing-elements

Thanks.

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