Our client at the Harvard Kennedy School (
epodx.org), have a lot of custom Problem XML in their courses. They encountered an issue with Studio not letting them save changes to these problems, after we'd upgraded them to Ficus.
We discovered a workaround to this issue, so I'm posting it here, in case anyone else runs into the same issue.
Remove the leading <problem> and ending </problem> tags from the XML given in the Simple Editor, before hitting Save.
For example, if the Problem XML is:
<problem>
<script type="text/javascript">
(function() {
$( ".check-label" ).text("Submit");
})();
</script>
<p>Suppose that you are charged with improving student achievement. Imagine you receive a report that examined data and concluded that students whose teachers get more hours of teacher training do better (in the sense that the students score higher on a national exam).</p><p>The report’s analysis is represented in the graph below. Citing this finding, the authors of the report recommend expanding the teacher training program so more training can be provided to teachers.</p>
<p>
<img src="/static/TeacherTraining.jpg" alt="Teacher Training Data" width="80%" height="80%"/><br /><a href="/static/Long_description_of_data_on_teacher_training_IVcP1.html" style="font-size: 90%" target="_blank">View extended text description</a>
</p>
<p><strong>Based on the report’s analysis, would you support the recommendation to expand the teacher training program?</strong></p>
<multiplechoiceresponse>
<choicegroup label="Would you support the recommendation to expand the teacher training program?" type="MultipleChoice" show_correctness="never">
<choice correct="true">Yes <choicehint label="">View the video below to learn more.</choicehint></choice>
<choice correct="true">No <choicehint label="">View the video below to learn more.</choicehint></choice>
</choicegroup>
</multiplechoiceresponse>
</problem>
Once the highlighted lines are removed, saving the problem works again.
Also, it will now allow you to switch to the Advanced Editor, which re-adds these <problem> and </problem> tags, and also moves the <multiplechoiceresponse> tag up above the <script> tag. And you can Save from the Advanced Editor now too.
So the problem above becomes:
<problem>
<multiplechoiceresponse>
<p> </p>
<script type="text/javascript">
(function() {
$( ".check-label" ).text("Submit");
})();
</script>
<p>Suppose that you are charged with improving student achievement. Imagine you receive a report that examined data and concluded that students whose teachers get more hours of teacher training do better (in the sense that the students score higher on a national exam).</p>
<p>The report’s analysis is represented in the graph below. Citing this finding, the authors of the report recommend expanding the teacher training program so more training can be provided to teachers.</p>
<p>
<img src="/static/TeacherTraining.jpg" alt="Teacher Training Data" width="80%" height="80%"/><br/><a href="/static/Long_description_of_data_on_teacher_training_IVcP1.html" style="font-size: 90%" target="_blank">View extended text description</a>
</p>
<p><strong>Based on the report’s analysis, would you support the recommendation to expand the teacher training program?</strong>
</p><choicegroup label="Would you support the recommendation to expand the teacher training program?" type="MultipleChoice" show_correctness="never">
<choice correct="true">Yes <choicehint label="">View the video below to learn more.</choicehint>
</choice>
<choice correct="true">No <choicehint label="">View the video below to learn more.</choicehint>
</choice>
</choicegroup>
</multiplechoiceresponse>
</problem>
Cheers,