From 1070db9ca5524332289e1e8a8c16ced921ce71c2 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Sat, 21 Sep 2019 16:09:25 +0800
Subject: [PATCH 1/6] add class image-link
---
public/editormd/plugins/image-dialog/image-dialog.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/public/editormd/plugins/image-dialog/image-dialog.js b/public/editormd/plugins/image-dialog/image-dialog.js
index da691e168..6da63f1e5 100644
--- a/public/editormd/plugins/image-dialog/image-dialog.js
+++ b/public/editormd/plugins/image-dialog/image-dialog.js
@@ -65,8 +65,8 @@
"" +
"" +
"
" +
- "" +
- "" +
+ "" +
+ "" +
"
" +
( (settings.imageUpload) ? "" : "");
From f8665b8a1fca90ea67f0e9ed1be8f45a7f7a8835 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Sat, 21 Sep 2019 16:23:14 +0800
Subject: [PATCH 2/6] https://www.trustie.net/issues/24302
---
public/react/src/App.css | 7 +++++++
.../src/modules/courses/common/comments/CommonReply.js | 2 +-
public/react/src/modules/forums/MemoDetailMDEditor.js | 5 +++--
public/react/src/modules/tpm/challengesnew/TPMMDEditor.js | 4 ++--
4 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/public/react/src/App.css b/public/react/src/App.css
index 557768eef..1c8ce15e1 100644
--- a/public/react/src/App.css
+++ b/public/react/src/App.css
@@ -72,6 +72,13 @@ html, body {
/* 某些情况下,被cm盖住了 */
z-index: 99;
}
+/* 图片点击放大的场景,隐藏图片链接 */
+.editormd-image-click-expand .editormd-image-dialog {
+ height: 234px !important;
+}
+ .editormd-image-click-expand .editormd-image-dialog .image-link {
+ display: none;
+ }
/* 解决鼠标框选时,左边第一列没高亮的问题 */
.CodeMirror .CodeMirror-lines pre.CodeMirror-line, .CodeMirror .CodeMirror-lines pre.CodeMirror-line-like {
padding: 0 12px ;
diff --git a/public/react/src/modules/courses/common/comments/CommonReply.js b/public/react/src/modules/courses/common/comments/CommonReply.js
index dae21949c..8b7817e85 100644
--- a/public/react/src/modules/courses/common/comments/CommonReply.js
+++ b/public/react/src/modules/courses/common/comments/CommonReply.js
@@ -250,7 +250,7 @@ class CommonReply extends Component{
}
`}
暂时还没有相关数据哦!
-{this.props.modalsTopval}
-{this.props.modalsBottomval}
- {this.props.loadtype===true? -{this.props.modalsTopval}
+{this.props.modalsBottomval}
+ {this.props.loadtype===true? +