1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 03:11:07 +00:00

Update editor (#4764)

* update seafile-editor

* update md-editor

* add translate
This commit is contained in:
songjiaqi1
2020-12-26 17:45:48 +08:00
committed by GitHub
parent d837293c56
commit 4cbbdcd725
19 changed files with 251 additions and 129 deletions

View File

@@ -2,7 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import { seafileAPI } from './utils/seafile-api';
import { Utils } from './utils/utils';
import { serviceURL } from './utils/constants';
import { serviceURL, mediaUrl } from './utils/constants';
import SharedFileView from './components/shared-file-view/shared-file-view';
import SharedFileViewTip from './components/shared-file-view/shared-file-view-tip';
import Loading from './components/loading';
@@ -77,6 +77,7 @@ class FileContent extends React.Component {
<div className="shared-file-view-body">
<div className="md-view">
<MarkdownViewer
scriptSource={mediaUrl + 'js/mathjax/tex-svg.js'}
markdownContent={this.state.markdownContent}
showTOC={false}
serviceURL={serviceURL}