watch={false}

dev_admin
hjm 6 years ago
parent 15a335a235
commit 9dd1999fee

@ -416,7 +416,7 @@ class BoardsNew extends Component{
max: 10000, message: '最大限制为10000个字符', max: 10000, message: '最大限制为10000个字符',
}], }],
})( })(
<TPMMDEditor ref={this.mdRef} placeholder={'请在此输入帖子详情最大限制为10000个字符'} watch={false} <TPMMDEditor ref={this.mdRef} placeholder={'请在此输入帖子详情最大限制为10000个字符'}
mdID={'courseMessageMD'} initValue={this.editTopic ? this.editTopic.content : ''} className="courseMessageMD"></TPMMDEditor> mdID={'courseMessageMD'} initValue={this.editTopic ? this.editTopic.content : ''} className="courseMessageMD"></TPMMDEditor>
)} )}
</Form.Item> </Form.Item>

@ -446,7 +446,7 @@ class NewWork extends Component{
}], }],
})( })(
<TPMMDEditor ref={this.contentMdRef} placeholder="请在此输入作业内容和要求,最大限制5000个字符" mdID={'courseContentMD'} refreshTimeout={1500} <TPMMDEditor ref={this.contentMdRef} placeholder="请在此输入作业内容和要求,最大限制5000个字符" mdID={'courseContentMD'} refreshTimeout={1500}
watch={false} className="courseMessageMD" initValue={this.state.description}></TPMMDEditor> className="courseMessageMD" initValue={this.state.description}></TPMMDEditor>
)} )}
</Form.Item> } </Form.Item> }
<Upload {...uploadProps} className="upload_1 newWorkUpload"> <Upload {...uploadProps} className="upload_1 newWorkUpload">
@ -508,7 +508,7 @@ class NewWork extends Component{
required: false required: false
}], }],
})( })(
<TPMMDEditor ref={this.answerMdRef} placeholder="请在此输入作业的参考答案,最大限制5000个字符" mdID={'workAnswerMD'} watch={false} <TPMMDEditor ref={this.answerMdRef} placeholder="请在此输入作业的参考答案,最大限制5000个字符" mdID={'workAnswerMD'}
className="courseMessageMD" refreshTimeout={1500} initValue={this.state.reference_answer || ''}></TPMMDEditor> className="courseMessageMD" refreshTimeout={1500} initValue={this.state.reference_answer || ''}></TPMMDEditor>
)} )}
<Upload {...answerUploadProps} className="upload_1"> <Upload {...answerUploadProps} className="upload_1">

@ -187,7 +187,7 @@ class SingleEditor extends Component{
<span className="color-grey-9 font-12 fl">客观题由系统自动评分请设置标准答案</span> <span className="color-grey-9 font-12 fl">客观题由系统自动评分请设置标准答案</span>
</p> </p>
<TPMMDEditor mdID={`question_${question_id}`} placeholder="请您输入题目" height={155} watch={false} <TPMMDEditor mdID={`question_${question_id}`} placeholder="请您输入题目" height={155}
initValue={question_title} onChange={(val) => this.setState({ question_title: val})} initValue={question_title} onChange={(val) => this.setState({ question_title: val})}
ref="titleEditor" ref="titleEditor"
></TPMMDEditor> ></TPMMDEditor>

@ -152,14 +152,14 @@ class MainEditor extends Component{
<span className="color-grey-9 font-12 fl">主观题未作答的情况下自动评为零分</span> <span className="color-grey-9 font-12 fl">主观题未作答的情况下自动评为零分</span>
</p> </p>
<TPMMDEditor mdID={`question_${question_id}`} placeholder="请您输入题目" height={155} watch={false} <TPMMDEditor mdID={`question_${question_id}`} placeholder="请您输入题目" height={155}
initValue={question_title} onChange={(val) => this.setState({ question_title: val})} initValue={question_title} onChange={(val) => this.setState({ question_title: val})}
noStorage={true} ref="titleEditor" noStorage={true} ref="titleEditor"
></TPMMDEditor> ></TPMMDEditor>
<div> <div>
<div className="mb10 font-16">参考答案</div> <div className="mb10 font-16">参考答案</div>
<TPMMDEditor mdID={`question_answer_${question_id}`} placeholder="请输入参考答案(可选)" height={155} watch={false} <TPMMDEditor mdID={`question_answer_${question_id}`} placeholder="请输入参考答案(可选)" height={155}
initValue={standard_answers[0] || ''} onChange={(val) => this.setState({ standard_answers: [val]})} initValue={standard_answers[0] || ''} onChange={(val) => this.setState({ standard_answers: [val]})}
noStorage={true} noStorage={true}
></TPMMDEditor> ></TPMMDEditor>

@ -57,7 +57,7 @@ class NullChildEditor extends Component{
className={'nullChildEditor'} className={'nullChildEditor'}
placeholder={`请输入参考答案${itemIndex == 0 ?'':'(可选)'}`} placeholder={`请输入参考答案${itemIndex == 0 ?'':'(可选)'}`}
toMDMode={toMDMode} noStorage={true} toMDMode={toMDMode} noStorage={true}
mdID={`answer_${index}${itemIndex}`} height={155} watch={false} mdID={`answer_${index}${itemIndex}`} height={155}
initValue={item} onChange={(val) => onAnswerChange(index, itemIndex, val)} initValue={item} onChange={(val) => onAnswerChange(index, itemIndex, val)}
></DMDEditor> ></DMDEditor>
</div> </div>

@ -297,7 +297,7 @@ class NullEditor extends Component{
<span className="color-grey-9 font-12 fl">客观题由系统自动评分允许手动调分请设置标准答案 支持最多5个空每空得分按照本题的总分平均计算</span> <span className="color-grey-9 font-12 fl">客观题由系统自动评分允许手动调分请设置标准答案 支持最多5个空每空得分按照本题的总分平均计算</span>
</p> </p>
<NullMDEditor {...this.props} mdID={`question_${question_id}`} placeholder="请您输入题目" height={155} watch={false} <NullMDEditor {...this.props} mdID={`question_${question_id}`} placeholder="请您输入题目" height={155}
initValue={question_title} onChange={(val) => this.setState({ question_title: val})} initValue={question_title} onChange={(val) => this.setState({ question_title: val})}
onPlaceholderChange={this.onPlaceholderChange} showNullButton={exerciseIsPublish ? false : true} onPlaceholderChange={this.onPlaceholderChange} showNullButton={exerciseIsPublish ? false : true}
ref="titleEditor" ref="titleEditor"

@ -250,7 +250,7 @@ class ShixunEditor extends Component{
style={{ marginBottom: '10px'}} style={{ marginBottom: '10px'}}
></Input> ></Input>
{/* <div style={{color: blackColor}} className="font-16 mb5">{shixun_name}</div> */} {/* <div style={{color: blackColor}} className="font-16 mb5">{shixun_name}</div> */}
<TPMMDEditor mdID={`question_${question_id}`} placeholder="请输入实训题完成要求" height={155} watch={false} <TPMMDEditor mdID={`question_${question_id}`} placeholder="请输入实训题完成要求" height={155}
initValue={question_title} onChange={(val) => this.setState({ question_title: val})} initValue={question_title} onChange={(val) => this.setState({ question_title: val})}
noStorage={true} noStorage={true}
></TPMMDEditor> ></TPMMDEditor>

@ -242,7 +242,7 @@ class SingleEditor extends Component{
<span className="color-grey-9 font-12 fl">客观题由系统自动评分请设置标准答案</span> <span className="color-grey-9 font-12 fl">客观题由系统自动评分请设置标准答案</span>
</p> </p>
<TPMMDEditor mdID={qNumber} placeholder="请您输入题目" height={155} watch={false} className="mb20" <TPMMDEditor mdID={qNumber} placeholder="请您输入题目" height={155} className="mb20"
initValue={question_title} onChange={(val) => this.setState({ question_title: val})} initValue={question_title} onChange={(val) => this.setState({ question_title: val})}
ref="titleEditor" ref="titleEditor"
@ -265,7 +265,7 @@ class SingleEditor extends Component{
<DMDEditor <DMDEditor
ref={`optionEditor${index}`} ref={`optionEditor${index}`}
toMDMode={this.toMDMode} toShowMode={this.toShowMode} toMDMode={this.toMDMode} toShowMode={this.toShowMode}
height={166} className={'optionMdEditor'} watch={false} noStorage={true} height={166} className={'optionMdEditor'} noStorage={true}
mdID={qNumber + index} placeholder="" onChange={(value) => this.onOptionContentChange(value, index)} mdID={qNumber + index} placeholder="" onChange={(value) => this.onOptionContentChange(value, index)}
initValue={item} initValue={item}
></DMDEditor> ></DMDEditor>

Loading…
Cancel
Save