diff --git a/.github/workflows/pr-playground-preview.yml b/.github/workflows/pr-playground-preview.yml index b5c963b..bea354a 100644 --- a/.github/workflows/pr-playground-preview.yml +++ b/.github/workflows/pr-playground-preview.yml @@ -60,7 +60,7 @@ jobs: '', `Preview in WordPress Playground`, '', - '> ⚠️ The embedded eXeLearning editor is not included in this preview. You can install it from **Settings > eXeLearning** using the "Download & Install Editor" button. All other plugin features (ELP upload, shortcode, Gutenberg block, 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. ELP upload, shortcode, Gutenberg block and preview work normally.', ].join('\n'); // Find existing comment diff --git a/blueprint.json b/blueprint.json index 9b2ac12..150f156 100644 --- a/blueprint.json +++ b/blueprint.json @@ -22,6 +22,18 @@ "activate": true } }, + { + "step": "writeFile", + "path": "/tmp/exe-editor.zip", + "data": { + "resource": "url", + "url": "https://github-proxy.exelearning.dev/?repo=exelearning/exelearning&release=v4.0.0&asset=exelearning-static-v4.0.0.zip" + } + }, + { + "step": "runPHP", + "code": "open('/tmp/exe-editor.zip') === TRUE) { $zip->extractTo($dest); $zip->close(); } @unlink('/tmp/exe-editor.zip'); } ?>" + }, { "step": "runPHP", "code": "set_permalink_structure('/%postname%/'); $wp_rewrite->flush_rules(true); ?>"