diff --git a/.github/workflows/pr-playground-preview.yml b/.github/workflows/pr-playground-preview.yml index 446b03f..a5e4b22 100644 --- a/.github/workflows/pr-playground-preview.yml +++ b/.github/workflows/pr-playground-preview.yml @@ -38,7 +38,7 @@ jobs: mode: append-to-description github-token: ${{ secrets.GITHUB_TOKEN }} extra-text: > - ⚠️ The embedded eXeLearning editor is not included in this preview. - You can install it from **Modules > eXeLearning Web > Configure** - using the "Download & Install Editor" button. - All other module features (ELPX upload, viewer, preview) work normally. + ℹ️ The eXeLearning editor is fetched from the shared release and + unpacked into the plugin when the playground boots, so the first + load may take a few extra seconds. ELPX upload, viewer and preview + work normally. diff --git a/README.md b/README.md index d26f42e..87eab8b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # eXeLearning web sites for Moodle -[![Preview in Moodle Playground](https://raw.githubusercontent.com/ateeducacion/action-moodle-playground-pr-preview/refs/heads/main/assets/playground-preview-button.svg)](https://moodle-playground.com/?blueprint-url=https://raw.githubusercontent.com/exelearning/mod_exeweb/refs/heads/main/blueprint.json) +Preview in Moodle Playground + +> ℹ️ The eXeLearning editor is fetched from the shared release and unpacked into the plugin when the playground boots, so the first load may take a few extra seconds. ELPX upload, viewer and preview work normally. Activity-type module to create and edit web sites with eXeLearning inside Moodle. diff --git a/blueprint.json b/blueprint.json index 00319d0..2d012d3 100644 --- a/blueprint.json +++ b/blueprint.json @@ -26,6 +26,12 @@ "pluginName": "exeweb", "url": "https://github.com/exelearning/mod_exeweb/archive/refs/heads/main.zip" }, + { + "step": "unzip", + "comment": "Auto-load the eXeLearning static editor so the playground boots with a working editor. Fetches the shared editor release asset once through the github-proxy (CORS) and extracts it into the plugin's bundled dir. The asset wraps everything in a 'static/' folder, so extracting into 'dist' yields 'dist/static/...', which embedded_editor_source_resolver serves via its 'bundled' precedence (moodledata -> bundled -> none). Pinned to match .editor-version for deterministic previews. embedded_editor_installer stays for production/offline installs.", + "destination": "/www/moodle/mod/exeweb/dist", + "data": { "url": "https://github-proxy.exelearning.dev/?repo=exelearning/exelearning&release=v4.0.0&asset=exelearning-static-v4.0.0.zip" } + }, { "step": "setConfigs", "configs": [