diff --git a/public/react/src/modules/forums/MemoDetail.js b/public/react/src/modules/forums/MemoDetail.js index 943f2c01c..ae20e3270 100644 --- a/public/react/src/modules/forums/MemoDetail.js +++ b/public/react/src/modules/forums/MemoDetail.js @@ -1,13 +1,17 @@ import React, { Component } from 'react'; + import { Link } from "react-router-dom"; + import axios from 'axios' import moment from 'moment' import Comments from '../comment/Comments' import update from 'immutability-helper' import RewardDialog from '../common/RewardDialog'; import ImageLayerOfCommentHOC from '../page/layers/ImageLayerOfCommentHOC' + import MemoDetailKEEditor from './MemoDetailKEEditor' import MemoDetailMDEditor from './MemoDetailMDEditor' + import { CBreadcrumb, htmlEncode } from 'educoder' import { Tooltip } from 'antd' @@ -652,7 +656,7 @@ class MemoDetail extends Component { // --------------------------------------------------------------------------------------------帖子獎勵 END showCommentInput = () => { - debugger + if (window.__useKindEditor === true) { this.refs.editor.showEditor(); } else { @@ -667,15 +671,9 @@ class MemoDetail extends Component { if (!memo || this.state.memoLoading) { return
} - // --------------------------------------------------------------------------------------------帖子獎勵 END - showCommentInput = () => { - - - if (window.__useKindEditor === true) { - this.refs.editor.showEditor(); - } else { - this.refs.editor.showEditor(); - } + let _current_user = {} + if (current_user) { + _current_user = current_user } (_current_user.user_url = `/users/${_current_user.login}`); memo.isDetailPage = true; @@ -839,30 +837,11 @@ class MemoDetail extends Component { } -