From d0a56f52d933b15d538ad08ee866c3720003ebb6 Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Tue, 27 Jan 2026 18:08:06 +0000
Subject: [PATCH] Fix buggy code input field in admin.php
- Included codemirror/addon/mode/loadmode.js script.
- Configured CodeMirror.modeURL.
- Updated change_editor function to correctly map dropdown selections to CodeMirror mode names and load them dynamically.
- Handled missing modes gracefully.
Co-authored-by: xRahul <1639945+xRahul@users.noreply.github.com>
---
quiz_system_git/admin.php | 76 +++++++++++++++++----------------------
1 file changed, 33 insertions(+), 43 deletions(-)
diff --git a/quiz_system_git/admin.php b/quiz_system_git/admin.php
index 25b2532..76cd155 100755
--- a/quiz_system_git/admin.php
+++ b/quiz_system_git/admin.php
@@ -1178,6 +1178,7 @@
+