|
|
|
@ -58,6 +58,7 @@ class JudquestionEditor extends Component{
|
|
|
|
|
zqda:null,
|
|
|
|
|
item_banksedit:[],
|
|
|
|
|
mychoicess:[],
|
|
|
|
|
url:''
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
addOption = () => {
|
|
|
|
@ -334,6 +335,16 @@ class JudquestionEditor extends Component{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
handleShowUploadImages=(url)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
url:url,
|
|
|
|
|
})
|
|
|
|
|
try {
|
|
|
|
|
this.props.handleShowUploadImage(url)
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
onContentChanges=(value,quill)=>{
|
|
|
|
|
const _text = quill.getText();
|
|
|
|
|
const reg = /^[\s\S]*.*[^\s][\s\S]*$/;
|
|
|
|
@ -437,6 +448,8 @@ class JudquestionEditor extends Component{
|
|
|
|
|
options={options}
|
|
|
|
|
value={question_title}
|
|
|
|
|
onContentChange={this.onContentChange}
|
|
|
|
|
showUploadImage={(url)=>this.handleShowUploadImages(url)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
@ -487,6 +500,8 @@ class JudquestionEditor extends Component{
|
|
|
|
|
options={options}
|
|
|
|
|
value={question_titles}
|
|
|
|
|
onContentChange={this.onContentChanges}
|
|
|
|
|
showUploadImage={(url)=>this.handleShowUploadImages(url)}
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|