-
Notifications
You must be signed in to change notification settings - Fork 33
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
feat: TinyMCE plugin insert iframe #427
feat: TinyMCE plugin insert iframe #427
Conversation
Thanks for the pull request, @johnvente! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
This is still a draft, but there are some failures. |
@e0d Hi there! this is ready for review now, I've fixed the failures |
Thanks @johnvente for this implementation! Please add unit tests to ensure the robustness of the code. |
Hey @jmakowski1123, any suggestions on who might be a good fit to review this? 👍 |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #427 +/- ##
==========================================
+ Coverage 90.57% 90.70% +0.12%
==========================================
Files 227 229 +2
Lines 4129 4206 +77
Branches 831 855 +24
==========================================
+ Hits 3740 3815 +75
- Misses 369 371 +2
Partials 20 20 ☔ View full report in Codecov by Sentry. |
Hi @santiagosuarezedunext! I've added the unit tests for the plugin |
src/editors/sharedComponents/TinyMceWidget/customTinyMcePlugins/embedIframePlugin.test.js
Outdated
Show resolved
Hide resolved
@mphilbrick211 This one already went through Product Review :) https://openedx.atlassian.net/wiki/spaces/OEPM/pages/3887071233/Problem+Authors+don+t+have+enough+options+to+create+the+content+they+would+like Let's touch base on how to connect the updated product review process, as this is the preferred way forward (ie, proposals get product review and approval before the PR is submitted, which is exactly what happened here.) |
Hi @mphilbrick211 😊 |
631d919
to
f471c5c
Compare
Hi @santiagosuarezedunext! The reviewing team would be @openedx/teaching-and-learning, but they are out for the holidays until January. |
Hi @mphilbrick211 Your assistance is greatly appreciated. Thank you! Best regards. |
Thanks for flagging, @santiagosuarezedunext! @openedx/2u-tnl @openedx/teaching-and-learning flagging for you! |
Hi there @santiagosuarezedunext! Do you think this implementation should it be in a waffle flag? |
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.
I tested this in my local environment using Tutor, and it works as described in the cover letter! Thank you. Let me know if anything else changes.
Hi there @navinkarkera! We know that you are not maintainer from this repository but could you take a look in this PR? That would help us a lot. Thank you very much! |
@johnvente, it's not necessary. Unlike other cases, this development received product approval without being flagged behind a waffle flag, and this is because it's an isolated improvement that doesn't affect any workflow or add anything new; it's just an enhancement to something that could already be done. |
Hi @johnvente, I also tested the implementation using tutor and it worked perfectly! |
@johnvente 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Description
This PR adds a TinyMCE plugin that enables the insertion of an iframe with its respective width and height dimensions, along with additional properties. It is similar to the official plugin found at:
Page Embed Plugin - Tiny Documentation
The plugin contains two tabs:
General tab: This tab allows us to add:
800px
for the width and the height100px
for the width and the heightAdvanced tab: This tab allows us to add metadata (optional) for the iframe
DEMO
demo.mp4
How to test it (Devstack)
You need to have this Waffle flag activated
new_core_editors.use_new_text_editor
Doc here
~/workspace/frontend-app-course-authoring
module.config.js
with the following configNote: Due to jsdom is not supported by tinyMCE we are adding test only for the plugin
check more here