From 3046237a56898f6289c3b7afe09ebc124b32b804 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Mon, 5 Aug 2019 16:43:36 +0800 Subject: [PATCH] =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20//=20=E8=A7=A3=E5=86=B3=E6=9C=89=E6=97=B6=E5=80=99=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=97=B6=E5=86=85=E5=AE=B9=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/App.css | 3 +++ public/react/src/modules/forums/MemoNew.js | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/public/react/src/App.css b/public/react/src/App.css index 7b0455bea..c54d8b905 100644 --- a/public/react/src/App.css +++ b/public/react/src/App.css @@ -58,4 +58,7 @@ html, body { /* resize */ .editormd .CodeMirror { border-right: none !important; +} +.editormd-preview { + border-left: 1px solid rgb(221, 221, 221); } \ No newline at end of file diff --git a/public/react/src/modules/forums/MemoNew.js b/public/react/src/modules/forums/MemoNew.js index e6482b8b6..a7b483c77 100644 --- a/public/react/src/modules/forums/MemoNew.js +++ b/public/react/src/modules/forums/MemoNew.js @@ -387,6 +387,11 @@ class MemoNew extends Component { // repertoires: [], // currentSelectRepertoiresIndex: -1, }, ()=> { + // 解决有时候编辑时内容不显示的问题 + setTimeout(() => { + this.mdRef.current && this.mdRef.current.setValue(content || '') + }, 2000) + $('.upload_filename').each((index, item) => { var width = window._textWidth($(item), '14px'); console.log(width)