// 解决有时候编辑时内容不显示的问题

dev_hjm
hjm 6 years ago
parent e68241c064
commit 3046237a56

@ -58,4 +58,7 @@ html, body {
/* resize */ /* resize */
.editormd .CodeMirror { .editormd .CodeMirror {
border-right: none !important; border-right: none !important;
}
.editormd-preview {
border-left: 1px solid rgb(221, 221, 221);
} }

@ -387,6 +387,11 @@ class MemoNew extends Component {
// repertoires: [], // repertoires: [],
// currentSelectRepertoiresIndex: -1, // currentSelectRepertoiresIndex: -1,
}, ()=> { }, ()=> {
// 解决有时候编辑时内容不显示的问题
setTimeout(() => {
this.mdRef.current && this.mdRef.current.setValue(content || '')
}, 2000)
$('.upload_filename').each((index, item) => { $('.upload_filename').each((index, item) => {
var width = window._textWidth($(item), '14px'); var width = window._textWidth($(item), '14px');
console.log(width) console.log(width)

Loading…
Cancel
Save