Add embedded viewer for Google Docs/Sheets/Slides links#1042
Open
tejswini-tiwari wants to merge 3 commits into
Open
Add embedded viewer for Google Docs/Sheets/Slides links#1042tejswini-tiwari wants to merge 3 commits into
tejswini-tiwari wants to merge 3 commits into
Conversation
…inks - Extracts all external links from article content to 'Resources & Links' section - Click any Google Docs/Sheets/Slides link to open in embedded iframe viewer - Viewer displays below article without leaving the course - Supports fullscreen mode for better viewing experience - 'Back to Links' button to return to links list - 'Open in New Tab' option for direct document access - Non-embeddable links open in new tab automatically - Prevents accidental navigation away from course content - Fixed TypeScript type error on line 233
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Problem
When students click on external links (Google Docs, Sheets, Dropbox, etc.) in article content, they navigate away from the course, interrupting the learning experience and losing their place in the article.
✅ Solution
Added an embedded document viewer that displays Google Docs/Sheets/Slides content directly within the course interface, allowing students to access resources without leaving the article.

📋 Changes Made
Features Added:
Technical Details:
convertToEmbedUrl()helper function to convert URLs to embeddable format🎨 User Experience Flow
✨ Benefits
✅ Improved Learning Experience - Students don't leave the course context
✅ Better Resource Access - Seamless document viewing without tab switching
✅ Safety - Uses security measures (noopener, noreferrer) for external links
📝 Notes
🧪 Testing