feat: adds scrollToXBlock message handler for cms iframe view#36478
Conversation
This commit adds a new message handler to the XBlockContainerPage CMS view, that allows the MFE to send a signal to the IFrame and scroll to a specific XBlock.
|
Thanks for the pull request, @tecoholic! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
…-for-iframe-in-studio
farhaanbukhsh
left a comment
There was a problem hiding this comment.
👍
- ✅ I tested this on local tutor stack
- ✅ I read through the code
- ❌ I checked for accessibility issues
- ❌ Includes documentation
|
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
|
2U Release Notice: This PR has been deployed to the edX production environment. |
1 similar comment
|
2U Release Notice: This PR has been deployed to the edX production environment. |
|
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
|
2U Release Notice: This PR has been deployed to the edX production environment. |
…x#36478) This commit adds a new message handler to the XBlockContainerPage CMS view, that allows the MFE to send a signal to the IFrame and scroll to a specific XBlock.
This commit adds a new message handler to the XBlockContainerPage CMS view, that allows the MFE to send a signal to the IFrame and scroll to a specific XBlock.
Description
This commit adds a new message handler to the XBlockContainerPage CMS view, that allows the MFE to send a signal to the IFrame and scroll to a specific XBlock.
Useful information to include:
PoC showing an MFE plugin that makes use of this message handler to scroll the page to specific XBlocks.
Screencast_20250403_155811.webm
Supporting information
Link to other information about the change, such as Jira issues, GitHub issues, or Discourse discussions.
Be sure to check they are publicly readable, or if not, repeat the information here.
Testing instructions
By default, the Authoring MFE uses legacy Studio UI for the Course Unit page. In order to test the
PR changes, enable the MFE's course unit page.
/admin/waffle_utils/waffleflagcourseoverridemodel/) with:contentstore.new_studio_mfe.use_new_unit_page.env.privatein the MFE repo with the followingMake sure that the context it "top" pointing to the MFE in the console, and adjust the

targetvalue to your studio URL.Deadline
None
Other information
Include anything else that will help reviewers and consumers understand the change.
Does this change depend on other changes elsewhere?
NO
Any special concerns or limitations? For example: deprecations, migrations, security, or accessibility.
N/A
If your database migration can't be rolled back easily.