|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Github:
|
|
|
|
|
* @Date: 2019-11-20 10:35:40
|
|
|
|
|
* @LastEditors: tangjiang
|
|
|
|
|
* @LastEditTime: 2019-12-04 19:56:43
|
|
|
|
|
* @LastEditTime: 2019-12-05 18:07:32
|
|
|
|
|
*/
|
|
|
|
|
import 'quill/dist/quill.core.css';
|
|
|
|
|
import 'quill/dist/quill.bubble.css';
|
|
|
|
@ -18,6 +18,7 @@ import AddTestDemo from './AddTestDemo';
|
|
|
|
|
import QuillEditor from '../../../quillEditor';
|
|
|
|
|
import actions from '../../../../../redux/actions';
|
|
|
|
|
import CONST from '../../../../../constants';
|
|
|
|
|
import { fromStore, toStore } from 'educoder'; // 保存和读取store值
|
|
|
|
|
const scrollIntoView = require('scroll-into-view');
|
|
|
|
|
const {jcLabel} = CONST;
|
|
|
|
|
const FormItem = Form.Item;
|
|
|
|
@ -110,6 +111,8 @@ class EditTab extends React.Component {
|
|
|
|
|
// 改变描述信息
|
|
|
|
|
handleChangeDescription = (value) => {
|
|
|
|
|
// console.log('获取的编辑器内容为: ', value);
|
|
|
|
|
// 描述信息变化时,将信息保存至store中
|
|
|
|
|
toStore('oj_description', value);
|
|
|
|
|
this.props.validateOjDescription(value);
|
|
|
|
|
}
|
|
|
|
|
// 改变难易度
|
|
|
|
|