feat: Handle JSInput extra files when copying/pasting (#32847)

This takes into account the extra files that are usually required when
copying problems containing JSInputs. Static files such as additional
CSS and JS files needed to interact and style the problem.
This commit is contained in:
Yusuf Musleh
2023-07-31 21:12:10 +03:00
committed by GitHub
parent 6598abbb6b
commit b97007e182
7 changed files with 275 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<!-- Original Source: https://files.edx.org/custom-js-example/jsinput_example.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Simple Question</title>
<link rel="stylesheet" type="text/css" href="simple-question.css">
</head>
<body>
<script src="jschannel.js"></script>
<script src="simple-question.js" defer></script>
<img src="image.jpg" />
<label class="directions">Here is a list below, please select:
<select class="choices"></select>
</label>
<p aria-live="polite" class="feedback"></p>
</body>
</html>