|
|
@ -7,7 +7,7 @@ import {
|
|
|
|
} from 'antd';
|
|
|
|
} from 'antd';
|
|
|
|
import axios from 'axios'
|
|
|
|
import axios from 'axios'
|
|
|
|
import QestionDisplayHeader from './QestionDisplayHeader'
|
|
|
|
import QestionDisplayHeader from './QestionDisplayHeader'
|
|
|
|
import {getUrl, ActionBtn, markdownToHTML} from 'educoder';
|
|
|
|
import {getUrl, ActionBtn, markdownToHTML, MarkdownToHtml} from 'educoder';
|
|
|
|
const { TextArea } = Input;
|
|
|
|
const { TextArea } = Input;
|
|
|
|
const confirm = Modal.confirm;
|
|
|
|
const confirm = Modal.confirm;
|
|
|
|
const $ = window.$
|
|
|
|
const $ = window.$
|
|
|
@ -100,16 +100,22 @@ class SingleDisplay extends Component{
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="mb10 clearfix" key={optionIndex}>
|
|
|
|
<div className="mb10 clearfix" key={optionIndex}>
|
|
|
|
<Radio disabled className="fl lineh-20" checked={item.standard_boolean}>{prefix}</Radio>
|
|
|
|
<Radio disabled className="fl lineh-20" checked={item.standard_boolean}>{prefix}</Radio>
|
|
|
|
<span style={{ display: 'inline-block'}} className="markdown-body fl"
|
|
|
|
<MarkdownToHtml content={item.choice_text} selector={'single_' + (index + 1) + '' + (optionIndex + 1)} style={{ float: 'left', display: 'inline-block' }}
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(item.choice_text)}}></span>
|
|
|
|
delay={true}
|
|
|
|
|
|
|
|
></MarkdownToHtml>
|
|
|
|
|
|
|
|
{/* <span style={{ display: 'inline-block'}} className="markdown-body fl"
|
|
|
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(item.choice_text)}}></span> */}
|
|
|
|
</div>)
|
|
|
|
</div>)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="mb10 clearfix" key={optionIndex}>
|
|
|
|
<div className="mb10 clearfix" key={optionIndex}>
|
|
|
|
<Checkbox disabled className="fl lineh-20" checked={item.standard_boolean}>{prefix}</Checkbox>
|
|
|
|
<Checkbox disabled className="fl lineh-20" checked={item.standard_boolean}>{prefix}</Checkbox>
|
|
|
|
<span style={{ display: 'inline-block'}} className="markdown-body fl"
|
|
|
|
<MarkdownToHtml content={item.choice_text} selector={'single_' + (index + 1)+ '' + (optionIndex + 1)} style={{ float: 'left', display: 'inline-block' }}
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(item.choice_text)}}></span>
|
|
|
|
delay={true}
|
|
|
|
|
|
|
|
></MarkdownToHtml>
|
|
|
|
|
|
|
|
{/* <span style={{ display: 'inline-block'}} className="markdown-body fl"
|
|
|
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(item.choice_text)}}></span> */}
|
|
|
|
</div>)
|
|
|
|
</div>)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|