|
|
|
@ -96,13 +96,13 @@ class MemoDetailMDEditortwo extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showEditor() {
|
|
|
|
|
$("html, body").animate({ scrollTop: $('#commentInput').offset().top - 100 }, 1000, () => {
|
|
|
|
|
if (this.commentMDEditor) {
|
|
|
|
|
this.commentMDEditor.cm.focus()
|
|
|
|
|
} else {
|
|
|
|
|
$('#commentInput input')[0].click()
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// $("html, body").animate({ scrollTop: $('#commentInput').offset().top - 100 }, 1000, () => {
|
|
|
|
|
// if (this.commentMDEditor) {
|
|
|
|
|
// this.commentMDEditor.cm.focus()
|
|
|
|
|
// } else {
|
|
|
|
|
// $('#commentInput input')[0].click()
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
}
|
|
|
|
|
onMockInputClick = () => {
|
|
|
|
|
this.setState({isInited: true})
|
|
|
|
|