|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
|
|
import { getUploadActionUrl } from 'educoder'
|
|
|
|
|
import { getUploadActionUrl } from 'educoder';
|
|
|
|
|
|
|
|
|
|
import './MemoDetailEditor.css'
|
|
|
|
|
import './MemoDetailEditor.css';
|
|
|
|
|
|
|
|
|
|
const $ = window.$;
|
|
|
|
|
|
|
|
|
@ -109,6 +109,7 @@ class MemoDetailMDEditor extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showEditor() {
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
$("html, body").animate({ scrollTop: $('.commentInput:visible').offset().top - 100 }, 1000, () => {
|
|
|
|
|
if (this.commentMDEditor) {
|
|
|
|
|
this.commentMDEditor.cm.focus()
|
|
|
|
@ -116,6 +117,15 @@ class MemoDetailMDEditor extends Component {
|
|
|
|
|
this.onMockInputClick()
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
=======
|
|
|
|
|
// $("html, body").animate({ scrollTop: $('.commentInput:visible').offset().top - 100 }, 1000, () => {
|
|
|
|
|
// if (this.commentMDEditor) {
|
|
|
|
|
// this.commentMDEditor.cm.focus()
|
|
|
|
|
// } else {
|
|
|
|
|
// this.onMockInputClick()
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
>>>>>>> f8dfb5f... 调整
|
|
|
|
|
}
|
|
|
|
|
close = () => {
|
|
|
|
|
this.setState({ isInited: false })
|
|
|
|
|