|
|
@ -251,6 +251,16 @@ class SingleEditor extends Component{
|
|
|
|
// standard_answers[index] = !standard_answers[index];
|
|
|
|
// standard_answers[index] = !standard_answers[index];
|
|
|
|
this.setState({ standard_answers })
|
|
|
|
this.setState({ standard_answers })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
handleShowUploadImages=(url)=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
url:url,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
this.props.handleShowUploadImage(url)
|
|
|
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
handleShowUploadImage = (url,i) => {
|
|
|
|
handleShowUploadImage = (url,i) => {
|
|
|
|
|
|
|
|
|
|
|
@ -494,6 +504,7 @@ class SingleEditor extends Component{
|
|
|
|
options={options}
|
|
|
|
options={options}
|
|
|
|
value={question_title}
|
|
|
|
value={question_title}
|
|
|
|
onContentChange={this.onContentChange}
|
|
|
|
onContentChange={this.onContentChange}
|
|
|
|
|
|
|
|
showUploadImage={(url)=>this.handleShowUploadImages(url)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="mb10 mt10 sortinxdirection">
|
|
|
|
<div className="mb10 mt10 sortinxdirection">
|
|
|
@ -603,6 +614,7 @@ class SingleEditor extends Component{
|
|
|
|
options={options}
|
|
|
|
options={options}
|
|
|
|
value={question_titles}
|
|
|
|
value={question_titles}
|
|
|
|
onContentChange={this.onContentChanges}
|
|
|
|
onContentChange={this.onContentChanges}
|
|
|
|
|
|
|
|
showUploadImage={(url)=>this.handleShowUploadImages(url)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|