-
-
Notifications
You must be signed in to change notification settings - Fork 439
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
Fix iframe removal in TinyMCE #1113
Conversation
The failed labeler task seems to be unrelated to my changes. |
How does the non minified change looks like? |
There is no non-minified change @tmotyl. This PR fixes an error Magento introduced in the minified file.They use |
My findings:
before 1.9.4.3 this file was identical to tinymce v 3.5.11 https://raw.githubusercontent.com/tinymce/tinymce/3.5.11/jscripts/tiny_mce/plugins/media/editor_plugin_src.js |
I know @tmotyl. Did you look at the StackExchange post? Did you compare the old minified version and my updated one? Again: |
@sprankhub I'm digging through it. But until we get there, lets manually check stuff. |
If you actually had a look at the stuff I mentioned and referenced, it should not be that hard to get. You can simply format the file and format my changed file to see what I changed. Not a nice experience as a contributor currently TBH. Anyway, I will try to give you even more context: The issue has been introduced in 1.9.4.3:
I formatted the minified file and created a diff. It looks like this:
As you can see, the idea was to wrap the call with a try-catch-block. However, instead of just doing this, the minified variable |
@sprankhub please dont get me wrong. I appreciate the PR and work you put to get this fixed. The real bottleneck in here (and with probably most OSS projects) is manpower on reviewing testing and merging patches. Thanks for your quick answers. Its all clear now, the change looks good by reading, but i would like to test it before I vote on it. |
Its unrelated. Waiting for #1101 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed and tested
Thanks for the PR and the thorough description, @sprankhub! |
…tinymce v3.5 Merge latest changes cfbc096 Fix iframe removal in TinyMCE (OpenMage#1113) was already fixed
Description (*)
The TinyMCE WYSIWYG editor removes iframes when the editor is toggled.
Related Pull Requests
n/a
Fixed Issues (if relevant)
n/a
Manual testing scenarios (*)
<iframe width="560" height="315" src="https://www.youtube.com/embed/JvBWJ6Lm9MU" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
in the content of the CMS page.Expected behaviour: The iframe is displayed.
Actual behaviour: The iframe is not displayed at all.
Questions or comments
See https://magento.stackexchange.com/a/312285/142.
Contribution checklist (*)