|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
import React,{ Component } from "react";
|
|
|
|
|
import { Radio } from 'antd';
|
|
|
|
|
import { MarkdownToHtml,QuillForEditor } from 'educoder';
|
|
|
|
|
import { MarkdownToHtml } from 'educoder';
|
|
|
|
|
import QestionDisplayHeader from './QestionDisplayHeader'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -56,19 +56,14 @@ class JudgeDisplay extends Component{
|
|
|
|
|
{/* 单选 or 多选 */}
|
|
|
|
|
<div className="options clearfix">
|
|
|
|
|
{ question_choices.map((item, optionIndex) => {
|
|
|
|
|
console.log(item.choice_text)
|
|
|
|
|
// 单选
|
|
|
|
|
return (
|
|
|
|
|
<div key={optionIndex} className="fl mr30 df">
|
|
|
|
|
<Radio disabled className="lineh-25" checked={item.standard_boolean}></Radio>
|
|
|
|
|
|
|
|
|
|
{this.props.exercise&&this.props.exercise.is_md?<MarkdownToHtml content={item.choice_text} selector={'judge_' + (index + 1) + optionIndex}
|
|
|
|
|
<MarkdownToHtml content={item.choice_text} selector={'judge_' + (index + 1) + optionIndex}
|
|
|
|
|
className=""
|
|
|
|
|
></MarkdownToHtml>:<QuillForEditor
|
|
|
|
|
readOnly={true}
|
|
|
|
|
style={{ float: 'left', display: 'inline-block' ,padding:'0px',margin: '2px 0px 0px'}}
|
|
|
|
|
value={item.choice_text?JSON.parse(item.choice_text):""}
|
|
|
|
|
// showUploadImage={this.handleShowUploadImage}
|
|
|
|
|
/>}
|
|
|
|
|
></MarkdownToHtml>
|
|
|
|
|
|
|
|
|
|
</div>)
|
|
|
|
|
|
|
|
|
|