Open
Conversation
Add a fully integrated embedded eXeLearning editor that runs inside Moodle, allowing teachers to create and edit web content without leaving the platform. Key changes: - Editor bootstrap (editor/index.php, editor/static.php, editor/save.php) that loads the static editor build inside an iframe with postMessage bridge for save/load communication - Admin settings widget to install/update/uninstall the editor from GitHub releases, with spinner UX and multilingual status messages - External API (manage_embedded_editor) for install/status AJAX actions - Source resolver with moodledata > bundled precedence policy - PostMessage bridge (moodle_exe_bridge.js) handling OPEN_FILE, REQUEST_EXPORT, and document change tracking via yjs - Admin-aware error messages: admins see "install from plugin settings", non-admins see "contact your administrator" - Fix trusted origins for postMessage (use scheme+host only) - Blueprint with all default settings and sample activities - Translations for en, es, ca, eu, gl - Capability mod/exeweb:manageembeddededitor - CI: Playground PR preview support
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.
Summary
This PR adds a fully integrated embedded eXeLearning editor that runs inside Moodle, allowing teachers to create and edit web content without leaving the platform.
Features
editor/index.php,editor/static.php,editor/save.php) — loads the static editor build inside an iframe with a postMessage bridge for save/load communicationmanage_embedded_editor) — AJAX endpoints for install and status actionsmoodle_exe_bridge.js) — handlesOPEN_FILE,REQUEST_EXPORT, and document change tracking via yjsmod/exeweb:manageembeddededitorTechnical notes
moodle_exception) to display cleanly inside iframesmanage_embedded_editor_upload.phpendpoint for Playground environments where PHP WASM cannot directly fetch GitHubTest plan
Moodle Playground Preview
The changes in this pull request can be previewed and tested using a Moodle Playground instance.