|
|
@ -40,12 +40,13 @@ class JudquestionEditor extends Component {
|
|
|
|
question_title: this.props.question_title !== undefined ? JSON.parse(this.props.question_title) : "",
|
|
|
|
question_title: this.props.question_title !== undefined ? JSON.parse(this.props.question_title) : "",
|
|
|
|
question_type: this.props.question_type || 0,
|
|
|
|
question_type: this.props.question_type || 0,
|
|
|
|
question_score: this.props.question_score || this.props.init_question_score,
|
|
|
|
question_score: this.props.question_score || this.props.init_question_score,
|
|
|
|
question_titles: this.props.question_titles !== undefined ? JSON.parse(this.props.question_titles) : "",
|
|
|
|
question_titles: this.props.question_titles!==undefined?JSON.parse(this.props.question_titles):"",
|
|
|
|
question_titlesysl: this.props.question_titlesysl || '',
|
|
|
|
question_titlesysl:this.props.question_titlesysl||'',
|
|
|
|
question_titleysl: this.props.question_title || '',
|
|
|
|
question_titleysl:this.props.question_title || '',
|
|
|
|
zqda: null,
|
|
|
|
zqda:null,
|
|
|
|
item_banksedit: [],
|
|
|
|
item_banksedit:[],
|
|
|
|
mychoicess: [],
|
|
|
|
mychoicess:[],
|
|
|
|
|
|
|
|
url:''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
addOption = () => {
|
|
|
|
addOption = () => {
|
|
|
@ -322,7 +323,17 @@ class JudquestionEditor extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
onContentChanges = (value, quill) => {
|
|
|
|
handleShowUploadImages=(url)=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
url:url,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
this.props.handleShowUploadImage(url)
|
|
|
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
onContentChanges=(value,quill)=>{
|
|
|
|
const _text = quill.getText();
|
|
|
|
const _text = quill.getText();
|
|
|
|
const reg = /^[\s\S]*.*[^\s][\s\S]*$/;
|
|
|
|
const reg = /^[\s\S]*.*[^\s][\s\S]*$/;
|
|
|
|
|
|
|
|
|
|
|
@ -425,6 +436,8 @@ class JudquestionEditor extends Component {
|
|
|
|
options={options}
|
|
|
|
options={options}
|
|
|
|
value={question_title}
|
|
|
|
value={question_title}
|
|
|
|
onContentChange={this.onContentChange}
|
|
|
|
onContentChange={this.onContentChange}
|
|
|
|
|
|
|
|
showUploadImage={(url)=>this.handleShowUploadImages(url)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
@ -475,6 +488,8 @@ class JudquestionEditor 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>
|
|
|
|