|
|
|
@ -22,7 +22,7 @@ import {ImageLayerOfCommentHOC} from '../page/layers/ImageLayerOfCommentHOC'
|
|
|
|
|
import MemoDetailKEEditor from './MemoDetailKEEditor'
|
|
|
|
|
import MemoDetailMDEditor from './MemoDetailMDEditor'
|
|
|
|
|
|
|
|
|
|
import { bytesToSize, CBreadcrumb } from 'educoder'
|
|
|
|
|
import { bytesToSize, CBreadcrumb ,htmlEncode} from 'educoder'
|
|
|
|
|
import { Tooltip } from 'antd'
|
|
|
|
|
|
|
|
|
|
// import CBreadcrumb from '../courses/common/CBreadcrumb'
|
|
|
|
@ -246,6 +246,8 @@ class MemoDetail extends Component {
|
|
|
|
|
if (commentContent) {
|
|
|
|
|
commentContent = commentContent.replace(/(\n<p>\n\t<br \/>\n<\/p>)*$/g,'');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
commentContent=htmlEncode(commentContent)
|
|
|
|
|
axios.post(url, {
|
|
|
|
|
parent_id: id,
|
|
|
|
|
content: commentContent
|
|
|
|
@ -491,6 +493,7 @@ class MemoDetail extends Component {
|
|
|
|
|
const url = `/memos/reply.json`;
|
|
|
|
|
let { comments } = this.state;
|
|
|
|
|
const user = this._getUser();
|
|
|
|
|
content=htmlEncode(content)
|
|
|
|
|
axios.post(url, {
|
|
|
|
|
parent_id: memo.id,
|
|
|
|
|
content: content
|
|
|
|
|