Commit b879d5d5 by yuananting

Merge branch 'feature/yuananting/20210221/question-bank-tools' into gray

parents d922cb2d 259da261
......@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-25 14:34:29
* @LastEditors: yuananting
* @LastEditTime: 2021-03-24 14:15:12
* @LastEditTime: 2021-03-25 15:03:01
* @Description: 助学工具-题库-题目管理-新建题目Tab
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -763,6 +763,15 @@ class NewQuestionTab extends Component {
) => {
const { blanksList } = this.state;
const isGapFilling = this.props.questionTypeKey === "GAP_FILLING";
if (contentList.length === 0) {
contentList.push({
content: "",
contentType: "QUESTION_ANSWER_DESC",
sort: 0,
textLength: 0,
type: "RICH_TEXT",
});
}
const editorContent = _.find(
contentList,
(contentItem) => contentItem.type === "RICH_TEXT"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment